People change a prompt, run it once, decide it is better and move on. That is not evidence: the output varies between runs anyway, and you noticed the improvement you were looking for. Turning this into something measurable takes about an hour and is the difference between improving a prompt and accumulating instructions.
What does an evaluation set look like?
Ten to twenty real inputs with known good outputs, kept in a file. Real is the important word: examples invented to test the prompt are easier than the messy cases that actually break it.
Include the awkward ones deliberately. The empty document, the one in the wrong format, the one where the answer is that there is no answer.
How do you score the results?
- Exact match. For extraction and classification, where there is a right answer.
- Schema validity. Whether the output parses and contains what it should.
- Checklists. For prose, a short list of things the answer must contain or avoid.
- Human judgement. Slow, necessary for quality, and worth reserving for a small sample.
Can a model do the scoring?
For some things, with caution. Using a model to judge output is common and works reasonably for checking whether a response meets stated criteria. It works poorly for factual accuracy, since the judge shares the blind spots of the thing it is judging.
Where you use it, give it the checklist rather than asking whether the answer is good, and validate the judge against your own scoring on a sample.
How many runs per case?
At least three, because sampling varies. A change that improves one run out of one has told you nothing, and differences smaller than the run-to-run variation are noise.
Setting temperature to zero reduces this and does not remove it entirely.
What should you test after?
Every prompt change, and every model change including ones you did not make. Providers update models under the same name, and a prompt that has worked for months can drift without any action on your side.
This is the strongest argument for pinning a dated model version in production and re-running the set before moving to a new one.
What does a regression look like?
Usually narrow. A change that improves the common case frequently breaks an edge case, which is exactly what a fixed set catches and impression does not. The empty input, the very long input and the input in the wrong language are the usual casualties.
What about testing for consistency?
Worth doing separately from correctness. Running the same input five times and comparing tells you how much the output varies, which matters for anything where a user might run something twice and see different answers.
High variation on a task that should be deterministic usually means the prompt is underspecified rather than that the model is unreliable, and tightening the format instruction fixes it more often than lowering the temperature does.
How do you keep it maintainable?
Small. Twenty cases you run every time beats two hundred you run never. Add a case whenever something fails in production, which is the cheapest way to grow a set that reflects reality rather than imagination.
What should you measure besides correctness?
Cost, latency and failure rate, all of which move when a prompt changes and none of which appear in a quality score. A prompt that improves accuracy slightly while doubling token use may be a poor trade at volume.
Refusal rate is worth tracking too. A change that makes a model more cautious can look like an improvement in a small sample and produce a product that declines legitimate requests, which users report as broken rather than as safe.
Is this worth it for a chat window prompt?
Not formally, and the habit still helps. Keeping three examples of a recurring task and trying a changed prompt against all three, rather than the one in front of you, takes two minutes and catches the case where your improvement only worked for today's input.