---
title: "Prompt engineering – writing prompts that work | Sweet Lava"
description: "A prompt is the instruction you give an AI model; prompt engineering makes results predictable instead of a lottery. See what a good prompt contains."
url: https://sweetlava.eu/en/glossary/prompt-engineering/
lang: en
alternate_pl: https://sweetlava.eu/pl/slownik/prompt-i-prompt-engineering/
---

SEO & AI 

# What is Prompt & prompt engineering?

A prompt is the instruction you give an AI model: a question, a task, a set of rules. Prompt engineering is the craft of writing those instructions so the model returns predictable, useful results rather than a lottery.

The same model can produce an excellent answer or a useless one, depending on how you phrase the task. A good prompt usually sets a role ("you are a tax adviser"), provides context and input data, defines the expected output format and gives examples. The fewer guesses you leave to the model, the more stable the result.

In AI products, prompts stop being playtime and become part of the system: the so-called system prompt defines what the assistant does, what it must not do and how it sounds. Changing one sentence can change the behaviour of the whole product, which is why prompts are tested and versioned like code.

**For buyers:** when accepting an AI implementation, ask how the vendor tests prompts against real cases and what happens when a user asks something outside the script. "The model will cope" is not an answer.

## Related services

- [ AI integration services → ](https://sweetlava.eu/en/services/ai-integration-services/)

## Related terms

- [AI hallucinations](https://sweetlava.eu/en/glossary/ai-hallucinations/)
- [LLM (large language model)](https://sweetlava.eu/en/glossary/llm/)
- [RAG (retrieval-augmented generation)](https://sweetlava.eu/en/glossary/rag/)

## Wondering what AI could change in your company?

We implement AI where it makes measurable sense and teach your team to use the tools. We'll also tell you straight when it's not worth it.

[ Get in touch ](https://sweetlava.eu/en/contact/?source=glossary-prompt-engineering)
