Writing prompts: the basics of better answers

A prompt is the input you give a language model. Structure, examples, context and common mistakes: how to write instructions that produce useful answers.

Last updated:

A prompt is the input a language model receives: a question, an instruction, or a longer description with material attached. The model continues the text and returns its answer. How good that answer is depends largely on how clear the input was. Precise wording saves rounds of correction.

What makes a good prompt?

A good prompt answers the questions a new colleague would ask before starting. A few building blocks are usually enough:

  • Task: What exactly should come out, for example a summary, a reply email or a table?
  • Context: Who will read the result, and what is the background?
  • Material: The text or data to work with.
  • Format: Length, structure, language and tone.
  • Limits: What should be left out, and what applies if information is missing?

Not every prompt needs all five. The more open the task, the more guidance helps.

Which techniques help in practice?

The simplest technique is giving examples. Show one or two samples of the result you want and the model picks up the form and style. A second is a role: asking for an answer as an experienced support agent changes wording and level of detail. A third is splitting the work: instead of one large task, ask for an outline first, then each part.

It also helps to check the output and ask follow-up questions. A prompt is rarely finished on the first try. If you save the version that worked, your team can reuse it.

What mistakes are common?

Prompts are often too short: "Write something about our product" leaves the model too much room. The opposite happens too, when contradicting instructions blur the result. Another mistake is assuming the model knows things it does not, such as internal prices or recent events. In that case, include the facts in the prompt.

Even with a good prompt, checking stays necessary. Models can state wrong things convincingly, as described in AI hallucinations. Confidential data belongs only in services whose data handling you have reviewed.

When is prompting not enough?

For many tasks a good prompt is all you need. If it reaches its limits, for example because the model should draw on your own documents, other approaches come into play. One of them is RAG, which supplies matching passages for each question.

Frequently asked questions

What is a prompt?

A prompt is the input to a language model: a question, an instruction and, where needed, material. The model produces its answer from it.

How long should a prompt be?

As long as needed and as short as possible. Simple questions need a few sentences; complex tasks benefit from context, format and examples.

Does the perfect prompt exist?

No. What works depends on the model and the task. Testing and refining is part of the process.

Do I have to write in English?

No. Current models handle many languages well. What matters is clear wording, not the language.

Let us talk about your project

Write to kontakt@phronox.de or use the contact form.

Request a project Book a consultation