Teams building with language models often rely on a feeling: they try a handful of examples, the outputs look fine, and the feature ships. Then real users bring real inputs and the quality is a surprise.
You can avoid that with a small evaluation set. It doesn't require a research team, and a week of focused effort is enough to start.
Step one: define what good means
Before collecting examples, write down what a correct output looks like for your use case. Be specific. For a feature that summarizes support tickets, good might mean: captures the customer's main issue, includes any account identifiers mentioned, doesn't invent details, and stays under a certain length. For a classifier, good means the right label.
If two people on your team can't agree on whether an output is acceptable, the definition needs work before any model does.
Step two: collect real examples
Gather fifty to a couple hundred real inputs from your actual data, with sensitive details removed. Include the ordinary cases, the messy cases, and the cases you're afraid of: very long inputs, empty inputs, inputs in other languages, inputs that try to confuse the system.
For each one, write the expected output or the checks it must pass. This is slow, and it's the most valuable work in the whole process.
Step three: score it
There are three ways to score outputs, and most teams use a mix:
- Exact checks for anything with a right answer, such as labels, extracted fields, or required format
- Rules for properties you can test in code, such as length, the presence of required fields, or banned phrases
- Human review for judgment calls, using a short rubric so reviewers score consistently
Using another model to grade outputs can speed things up, but check its grading against human judgment on a sample first. A grader that agrees with you most of the time is useful. One you haven't verified is a guess.
Step four: use it every time you change something
Run the full set whenever you change the prompt, the model, the settings, or the surrounding code. Compare results to the previous run. If a change helps some cases and breaks others, you'll see it immediately instead of hearing about it from customers.
Track the failures
Keep a list of the specific ways the feature goes wrong: invents facts, ignores instructions, mishandles long input, leaks details from one section into another. Group them and fix the most costly first. Over time, the list tells you where the model needs help, where a guardrail is needed, and where a person should review.
Keep adding examples
Once the feature is live, add the cases users flag, along with the corrections your reviewers make. The evaluation set should grow with the product. After a few months it becomes an asset that makes model upgrades and prompt changes safe.
Set a launch bar
Agree in advance on what result is good enough to ship, for example a minimum pass rate on the core cases and zero failures on the dangerous ones. Writing it down prevents the quiet slide into "close enough."
The takeaway
You can't improve what you can't measure. A modest evaluation set turns AI quality from opinion into data, and it's the single practice that most separates teams who ship dependable AI from teams who ship demos.