lowob

What Is Prompt Engineering?

Prompt engineering is the practice of writing, structuring and testing the instructions an AI model works from, so that its output is accurate, consistent and in the format a team needs. It covers the role, the task, the examples, the order of material and the output format. Small wording and formatting changes can move results a long way, so a prompt is only as good as the tests run against it. It is one part of context engineering, which decides everything else the model sees.

Gateway 0ToolingContextRecordReasoningGateway 1Gateway 2Gateway 3
Where this piece sits in The Build Order: the context layer.

What prompt engineering means

A prompt is everything written to the model for a task: the standing instructions in the system prompt, the request, any examples and the answer format. Prompt engineering is the work of making that text reliable. It is closer to writing a procedure for a new hire than to finding magic words. Anthropic's documentation suggests thinking of the model as "a brilliant but new employee who lacks context on your norms and workflows". Its test is simple: show the prompt to a colleague with little context on the task. If they would be confused, the model will be too.

Schulhoff and colleagues' Prompt Report, first posted in June 2024, catalogued 58 text-based prompting techniques. Most business use relies on a handful.

TechniqueWhat it doesCommercial example
RoleSets who the model is acting as"You draft renewal summaries for account managers"
Task and reasonStates the job and why each rule exists"Under 150 words, because it is read on a phone before the call"
ExamplesShows three to five worked input and output pairsThree past call notes, each with the summary it should produce
Tagged structureSeparates instructions, context and inputContract in one tagged block, notes in another, instructions last
Long material firstPuts documents above the questionContract text, then "List the renewal terms"
Step-by-step reasoningAsks the model to work through a problem before answeringCheck a proposed discount against each pricing rule in turn
Output formatSpecifies fields or a schemaAccount, risk level and next step as fixed fields; see structured output

Why it matters for a commercial team

Prompts are more fragile than they look. Sclar and colleagues changed only how few-shot prompts were formatted, such as separators, spacing and casing, and left the content alone. On LLaMA-2-13B, accuracy varied by up to 76 points across formats. The sensitivity persisted with larger models, more examples and instruction tuning. The best format for one model only weakly predicted the best format for another.

So a prompt that worked last quarter may behave differently after the provider updates the model, and one copied between tools may not transfer. OpenAI's guidance is to pin production applications to specific model snapshots and to build tests that "measure prompt behavior so you can monitor performance as you iterate".

Model type matters as well. OpenAI's guide says reasoning models do better with high-level goals, while standard models "benefit from more explicit instructions".

Prompt engineering also has limits. Anthropic notes that not every failing test is best fixed with a better prompt: latency and cost are often improved more easily by choosing a different model. Wrong facts are usually a context problem, because the model was never shown the right record. That is the territory of context engineering, and our comparison of prompt engineering and context engineering sets out the boundary. Rules that must hold, such as discount limits, belong in code and permissions, not in wording a model may ignore.

In lowob's model of the enterprise brain, the prompt sits with the parts a firm owns. Rent the model; own the instructions, the examples and the precedents they draw on.

How to start: treat a prompt like a procedure

  1. Write the success criteria first. For a renewal summary: names the renewal date, flags open issues, stays under 150 words, invents no figures.
  2. Collect 20 to 30 real cases with known good outputs. This becomes the test set; our explainer on AI evals covers the method.
  3. Draft the prompt with a role, the task, the reasons behind each rule and three to five examples.
  4. Run the test set, score it and change one thing at a time.
  5. Version the prompt with a named owner, and rerun the tests whenever the prompt or the model changes.

Two common mistakes are worth naming. Anthropic advises saying what to do rather than only what to avoid: "write in short paragraphs" works better than "no bullet points". And one long prompt covering every case is harder to test than one prompt per task, chained where needed.

lowob takeaways

  • A prompt is a procedure. Write it for a capable new hire who has no context.
  • Formatting alone moves results. Test across real cases, not one run.
  • Pin the model and retest. Model updates change how a prompt behaves.
  • Prompts do not enforce rules. Permissions and limits live in code.

Common questions

What is prompt engineering in simple terms?

Writing and testing the instructions you give an AI model so that it does a task reliably: the role, the task, a few examples and the format of the answer.

Is prompt engineering still relevant with newer AI models?

Yes, though the emphasis has shifted. Newer and reasoning models need fewer tricks, but they still need clear tasks, examples and tests, and providers still advise retesting when models change.

What is the difference between prompt engineering and context engineering?

Prompt engineering covers how the instructions are written. Context engineering covers everything the model sees, including retrieved records, tool results and conversation history.

Do I need to hire a prompt engineer?

Most firms of 20 to 500 people do not need a dedicated role. They need a named owner for each production prompt, a test set and the habit of versioning every change.

Sources and notes

What Is an AI Agent, and Where Does It Fit in the Brain?

Read next in The Build Order