The evaluation nobody wants to build
Shipping an LLM feature without a way to measure it means every future change is a guess.
The first version is quick. Then someone asks whether the new model is better for your case, and there is no way to answer — so the change ships on vibes, or does not ship at all.
An evaluation is the thing that turns that into a decision. It is also the least interesting work in the project, which is why it is skipped.
Start with twenty examples
Not two thousand. Twenty real inputs, chosen deliberately:
- Five typical cases.
- Five edge cases you know are hard.
- Five that have failed in production.
- Five that are ambiguous, where you would accept several answers.
That last group is the one people leave out, and it is where most disagreement about quality actually lives.
Decide what "correct" means before you look
Write the criterion first. Afterwards, every output looks defensible — you will find a reading that makes it fine, because you want to ship.
Three kinds of criterion, in descending order of reliability:
Programmatic. Valid JSON, required fields present, no invented identifiers. Cheap and unambiguous. Use these wherever the task allows.
Model-graded. Another model judges against a rubric. Works when the rubric is specific — "does the summary state the decision that was reached" — and fails when it is vague, at which point you have automated a coin flip.
Human. Expensive, and the only real answer for anything requiring taste. Do it on a sample, and do it blind: knowing which output came from your new prompt is enough to bias you.
Run it on every change
Prompt edits. Model changes. Retrieval changes. Anything.
The point is not the absolute number — it will be unimpressive. The point is the delta, and whether it moved in the direction you intended.
Watch what the number hides
An average conceals the distribution. A change that improves typical cases and destroys edge cases can leave the mean flat while making the product worse for exactly the users who noticed the problem in the first place.
Look at the per-case table. Specifically, look at what got worse. Something always does, and a change where nothing regressed usually means the evaluation is not sensitive enough to be measuring anything.