Most features have a clear test. It passes or it fails. AI features rarely work like that. The output changes from run to run, and it is usually reasonable and sometimes wrong. The only way to know whether a change helped is to run the same cases before and after and compare the results. If you do not have those cases when the work starts, every decision until you write them rests on how the demo felt.
That set of cases is an eval: real questions, each with what a good answer must do, plus a script that scores the system against them. Write it first. It is test-driven development for a system that gives a range of answers instead of a single one.
Start small and real
Your first eval does not need to be big, but its cases do need to be real. Take cases from support tickets, logs and the questions users already ask. For each one, write down what a good answer must do. A few dozen cases cover more than you would expect, as long as they include the hard ones.
- Cases the feature must get right every time.
- Cases it should refuse, or hand to a person.
- Cases where the data has no good answer, and the right response says so.
- Strange formats and phrasings nobody planned for.
Report the last three kinds separately, the refusals, the cases with no good answer and the strange formats, so a good average on the easy cases cannot hide a failure on the hard ones. A set like this, kept and grown over time, is often called a golden set. Your golden set is a product, not a spreadsheet covers how it grows into something you can trust.
Use the cheapest check that works
Many answers can be checked by code. A field must be present, a format must match, a number must be correct, or a phrase must appear. Checking each answer with a regular expression is crude, and it is enough for questions with a known answer.
Use scoring rubrics, marked by a model or a person, only where quality is a judgment call. That covers tone, completeness, and whether an explanation stays true to its sources. If a model does the scoring, check it against human scores first. A judge that cannot name the failure is not a judge explains how.
Run it on every change
Make the eval part of how changes ship. A prompt edit, a model upgrade or a new retrieval setting should run the eval first, and a drop in results should block the change like a failing test. An eval that cannot block a release is just a report explains what an eval should be allowed to stop, and who can override it.
Without it, the team builds the feature and ships it, then argues about whether the next change helped, each person holding three examples. Cases written up front turn that argument into a comparison anyone can rerun.
Before your next AI change starts, write your first twenty real cases and what each answer must do, plus a script that scores them, and grow the set from there. Run it on what you have today, so the change has something to beat.
About this article
- Format
- Article
- Level
- Practitioner
- Read
- 2 min read
- Published
- Nov 16, 2026
- Disciplines
Considered pieces on one idea.
More on these topics
Checklist · · 12 checks
RAG production-readiness checklist
Twelve checks to pass before a retrieval system answers a real user. Tick them locally; progress stays in your browser.
Checklist · · 24 checks
Working with Claude, practices that hold up
Prompting, agents and tools, Claude Code, evaluation and safety. The habits that make Claude-based systems reliable, as a checklist you can run against your own setup.
Explainer · · 2 min read
Real users ask questions your test set never imagined
Offline evals cover the questions you thought of. Production tells you the ones you did not.
Discussion