An AI system can look excellent in a demo and still fail on the cases that matter. Evals are how builders find out before users do. An eval runs the system on a set of realistic inputs, compares each output with what a good answer looks like, and produces a score. Without evals, every change to a prompt or model is a guess. With them, a buyer can see whether the system is getting better, staying the same or quietly getting worse.
How it works
An eval has three parts. First, a set of test cases, ideally drawn from real work: actual customer questions, real invoices, genuine support tickets. A carefully checked set of these with known correct answers is a golden dataset. Second, a way of scoring each output. Third, a report that shows the score overall and on the cases that failed.
Scoring depends on the task:
- Exact checks suit extraction and classification: did the system pull the right invoice number, choose the right category?
- Rule checks test format and constraints: is the output valid JSON, does it cite a source, does it stay under a length?
- Model-graded checks use a second model to judge qualities that are hard to define with rules, such as whether an answer is faithful to its sources. These need spot-checking by people.
- Human review remains the reference for judgement-heavy tasks.
Evals run whenever something changes, which makes them a form of regression testing for AI behaviour. They sit alongside red teaming, which looks for failures deliberately, and observability, which watches the live system.
What it means for cost
Building evals takes real effort, mostly in collecting and checking test cases, so builds with proper evaluation tend to price higher than builds without it. That cost usually pays back: evals catch hallucinations and errors before launch, make model upgrades safe, and give the buyer a clear acceptance test.
When reviewing a quote, ask:
- How will you measure whether the system is good enough?
- Where will the test cases come from, and who checks the correct answers?
- What score counts as acceptable, and on which cases?
- Will we receive the eval set and be able to run it ourselves?
A builder who cannot describe how they will test outputs is asking the buyer to judge quality by feel.
Common questions
What is the difference between evals and normal software testing?
Normal tests check that code does exactly what it should, with a clear pass or fail. AI outputs vary and are often partly right, so evals score quality across many examples. Both are needed: tests for the code around the model, evals for the model's behaviour.
How many test cases does an eval need?
Enough to cover the common cases and the known hard ones. A small, carefully chosen set from real data is more useful than a large synthetic one. The set should grow as new failures are found in use.
Should I own the evals for my system?
Yes. The eval set encodes what good looks like for your business. Owning it lets you check a new model, a new builder or a new version without starting again.