[UTC+3]

Prompt engineering: how to get the answer you need from a model

August 17, 2026 · 6 minBasicsIn plain words

Why this is worth knowing

  • To understand how the share of correct answers rises without changing the model and without new budget
  • To know what to ask a vendor: which sample the measurement ran on, and how the instruction gets revised from here
  • To tell work on wording apart from the expensive options — fine-tuning and switching providers

What is prompt engineering in plain words

A new manager is handed an instruction for sorting incoming requests. The first version says "process the enquiry" — and half the requests land in the wrong department. The instruction is rewritten: the departments are listed, three examples of borderline cases are added, along with a rule that says "if none of them fits, send it to the general queue."

The errors disappear not because the manager got smarter. The wording of the task changed.

Prompt engineering is the same thing, but with a model. A prompt is the text of the task sent to the model on every request. Prompt engineering is the work around it: collect examples, measure the share of correct answers, revise the wording, measure again.

There is one difference from working with a person, and it is decisive. Testing a new version of the instruction on a hundred cases takes minutes, not a quarter.

How it works

Step 1
Collect a sample
50–100 cases from the real flow, reviewed by hand. Rare and borderline ones are essential — those are where the system breaks.
Step 2
Measure the baseline
Run the sample against the current wording. Record the share of correct answers — that is the reference point, and without it revisions have nothing to be compared against.
Step 3
Change one thing
One element at a time: the answer format, the set of examples, the rule for a borderline case. Two changes at once and it is impossible to tell which one worked.
Step 4
Measure again
Same sample, same model. A difference of under a couple of percent across a hundred cases is noise, not improvement.
Step 5
Pin the version
The instruction text is stored with a date and the measurement result. A month later it will be clear which version worked and why it was replaced.
The cycle of working on wording

Then there is the question of what exactly gets revised. Experience with reviewing instructions narrows the changes down to four types: a strict answer format instead of free text, two or three worked examples written into the text itself, an explicit rule for the "nothing matched" case, and a ban on inventing missing fields. The last one removes part of the hallucination problem — answers where the model fills a gap with plausible fiction.

The fixed part of the instruction is usually moved into a system prompt. A model remembers nothing between requests, so the full context is sent afresh on every call. Caching helps here: an unchanged opening section of the request is read from cache and billed at a reduced rate. The size of the discount depends on the provider and should be checked against its price list — hence a second lever: the boilerplate section is kept stable so that the cache is hit more often.

An example from practice

A company sorts incoming email into seven types of enquiry. The flow is around 3,000 letters a month. The first wording describes each type in a single line and asks the model to "determine the category."

The figures below are calculated benchmarks for a process of this profile, not a report on a specific deployment. The measurement method is stated so that it can be repeated on any company's own data.

The measurement: 100 letters labelled by hand by two employees, with borderline cases reviewed separately. The share of correct categories on the first wording is around 70%. An error review shows that almost all of them fall on two adjacent types and on letters containing two enquiries at once.

Then come three revisions, one at a time. A strict answer format with a fixed list of values. Three examples of those very adjacent cases written into the instruction text. A rule: if there is more than one type, return the primary one plus a "human review required" flag.

Original wording
70 %
+ strict answer format
79 %
+ examples of borderline cases
88 %
+ rule for double enquiries
91 %
Share of correct categories on a single sample of 100 letters · Source: Calculated benchmark: measurement on 100 hand-labelled letters, one model, three consecutive revisions of the wording

The model was never changed. What changed was the text of the task and the order of testing. The remaining 9% go to a human via the flag — and that is built into the process in advance, rather than discovered through complaints.

What this gives a business

  • Quality improves without new budget. Revising the wording costs analyst hours; changing the model means moving the whole system and re-running acceptance. The order of moves runs from cheap to expensive: wording, then retrieval over an in-house knowledge base, then fine-tuning.
  • A number appears that can be agreed on. "Share of correct classifications on a sample of 100 cases" is an acceptance criterion for a contract. Without it, acceptance comes down to "the answers look fine, more or less."
  • Errors become manageable. The rule "if unsure, flag it and hand it to a human" turns part of the errors into an honest handover. From there it is a decision about what share of manual reviews is acceptable in money terms.
  • The bill for requests is predictable. The instruction goes to the model on every request and is counted in tokens. Trimming the boilerplate section shows up in the invoice immediately — the rough order of magnitude can be estimated with the AI budget calculator.

When this can be skipped

One-off tasks need no refined instruction. Writing an email, shortening a text, sketching out headline options — an ordinary request is enough here, and a person sees the result immediately and edits it by hand.

Separate work is also unnecessary where a model is already embedded in a finished product: the instructions inside were written by the vendor, and only settings are exposed from the outside. The point appears at volume — when the same task repeats hundreds of times a month and the answer travels onward without a human looking at it.

There is a boundary on the other side too. If the errors come from missing data — the model simply does not know the company's contracts — wording will not save the day. That is treated by feeding the relevant documents into the request, and that is already context engineering.

What is worth checking

First: changing the model wipes out part of the tuning. Wording refined for one model produces a different error rate on another — sometimes higher, sometimes lower. That is why the sample and the measurement are kept: during a migration the sample is run again and compared against the previous figure.

Second: what should be requested from a vendor is the sample itself and the measurement protocol, not the final percentage. A percentage calculated on convenient examples says nothing about the real flow. What matters is whether rare and borderline cases made it into the sample.

Third: the instruction lives alongside the process. A new type of request appears, the rules change — the wording is revised and re-measured. Without that, the share of correct answers quietly slides over a few months, and it will become visible through customer complaints.

Frequently asked questions

What is prompt engineering in plain words?

It is the work done on the text of the task handed to a model: what to do, on which data, in what form to return the answer, and what counts as an error. The wording is not written once and left alone — it is tested against a sample of real cases and revised based on the results. The closest analogy is writing an instruction manual for a new hire, except that checking it takes minutes rather than weeks.

Does a company need a dedicated prompt engineer?

For one or two processes, a separate role is rarely created: the instruction is written by whoever knows the process, and a developer wires it into the system. A dedicated person becomes justified once there are more than a dozen instructions, they share common rules, and they change every week. At that point versioning and regression testing appear as tasks, and those need an owner.

What is the difference between a prompt and prompt engineering?

A prompt is the text of the request itself. Prompt engineering is the process around it: collecting examples, measuring the share of correct answers, revising the wording, measuring again, and pinning the version. Without measurement it is rewriting blind: the wording feels better while the error rate in production stays exactly where it was.

How many examples are needed to test an instruction?

A working estimate takes 50–100 manually reviewed cases from the real flow, including rare and borderline ones. Below 30, the spread swamps the effect of any revision. Composition matters more than volume: if the sample lacks the cases that break the system in production, the measurement will show a health it does not have.

Does prompt engineering replace fine-tuning?

Some of the tasks that used to call for fine-tuning are now handled by wording plus feeding the right data into the request — that is cheaper and can be revised within an hour. Fine-tuning remains where a consistent style, narrow domain labelling, or a shorter request for cost reasons is required. The usual order is: wording first, then retrieval over an in-house knowledge base, and only then fine-tuning.