ENES

Prompt engineering

Writing instructions for an AI model so it gives you what you actually need.

A vague one-line prompt gives a generic answer, while a prompt built from goal, context, example and format blocks gives an answer on target

Prompt engineering is the practice of writing the instructions you give an AI model (the prompt) so that it does the job well. The same model can give a bland, generic answer or a sharp, useful one depending on how it was asked. 'Engineering' sounds grand; most of it is clear writing plus some trial and error.

The techniques that work are a lot like briefing a smart new colleague who knows nothing about your situation. Say what the goal is and who the result is for. Give the context it cannot guess: the audience, the constraints, the document to work from. Show one or two examples of what good looks like. Say what form you want back: a table, three bullet points, under 100 words, in Spanish. For tricky problems, asking the model to work through the steps before answering often helps.

It matters at two levels. For everyday use, it is the difference between 'write a post about our product' and a request that gets something you can actually publish. For companies building products on top of models, the prompt is part of the software: a carefully tested set of instructions, often hidden from the user as a system prompt, decides how the assistant behaves. As models get better at understanding plain requests, fewer tricks are needed, but clear instructions and good context still make the biggest difference.

Keep in mind

Go deeper

Related terms

More in AI