On this page
Why evaluation comes first
Traditional software does the same thing every time. Language models do not. The same prompt can produce different answers, and a new model version can quietly improve one task while breaking another. Without a fixed set of tests, every prompt tweak is a guess, and the first person to notice a regression is usually a customer.
Build the set from real examples
Sit down with the people who will use the feature and collect real inputs: actual customer emails, real documents, genuine questions. Include the hard and awkward ones, the vague requests and the cases where the right answer is to refuse or ask a follow-up. Then agree, together, what a good answer looks like for each.
- Start with 50 to 200 examples, then grow over time
- Include edge cases, refusals and tricky inputs
- Write down what good looks like before you test
- Add every real-world failure to the set once it is fixed
Decide how to score
Some checks can be automatic: did the output follow the format, did it cite a source, did it include a banned phrase? Others need judgement. You can use a second model as a grader for things like relevance and tone, but check its scores against human reviews regularly so you trust the grader too.
Run it on every change
Treat the evaluation like unit tests. Run it automatically whenever a prompt, model, retrieval setting or tool changes, and block a release if quality drops below the agreed bar. This turns AI development from trial and error into normal engineering.
Keep watching after launch
Real users will find cases your test set missed. Log inputs and outputs (with privacy controls), collect thumbs up and down, and review a sample every week. The best evaluation sets are never finished, they grow with the product.