How to evaluate AI systems beyond vibe checks
Test AI like software: real cases, code checks for what must hold, a calibrated LLM judge for the rest, human audits, and a release gate on every change.
Test AI like software: real cases, code checks for what must hold, a calibrated LLM judge for the rest, human audits, and a release gate on every change.
State the task and success criteria, give context and reasons, show examples, enforce the format with a schema and test every change. Prompting for 2026 models.
Coding agents optimise for finishing the task, not your scope, so drift builds up. Write scope as a contract, turn criteria into tests and verify continuously.
A recurring report. A slow review. A prototype that needs to work in the real world.
Test an AI system the way you test software: a fixed set of real cases with known good outcomes, automatic checks for everything that must always be true, a calibrated model-as-judge for qualities that need judgement, and a person reviewing a sample. Run the suite on every change to the model, prompt, tools or data, and block the release when it fails. That repeatable suite (your evals) is what replaces the vibe check of trying a handful of prompts and deciding the answers look about right.
Here's how it usually goes wrong without one. A team ships an internal assistant for policy questions and the demo goes smoothly. A few weeks later the provider updates the model, and the assistant starts answering with more confidence and fewer caveats. Nothing throws an error, so nobody spots it until a wrong answer reaches someone who acts on it. A suite of fifty real questions, run on the day of the update, would've shown the shift in an afternoon.
Key takeaways
Eyeballing outputs is fine for a prototype. In production it breaks down for four reasons:
The scorecard above is what a release gate looks like in practice: each quality dimension has its own threshold, and the candidate has to clear all of them. Here grounding sits below its threshold, so the release waits until someone has inspected the failing cases, even though the overall average looks healthy.
The fastest way to build trust is to split what must always be true from what should be true most of the time. The first group doesn't need a model to check it: plain code is faster, cheaper and never disagrees with itself.
| Deterministic (code checks) | Judged (rubric or comparison) | |
|---|---|---|
| Structure | Output parses and matches the schema | Answer is well organised and concise |
| Grounding | Every claim carries a citation; cited passages exist | The cited passage actually supports the claim |
| Safety | Personal data redacted; forbidden phrases absent | Handles a distressed or hostile user appropriately |
| Correctness | Extracted fields equal the labelled values | Free-text answer is correct and complete |
| Operations | Latency and cost per case within budget | Consistent answers across paraphrases |
Structured outputs make the left-hand column far easier than it used to be: when the provider constrains the response to your schema, format failures mostly vanish and you can test the values directly. Keep the schema check anyway: it's cheap, and it catches the day someone switches the constraint off.
Using a model to grade outputs against a rubric (or to compare two outputs side by side) is what makes evaluation affordable at scale, and it works. The original LLM-as-a-judge study found strong judge models agreed with human preferences over 80% of the time, roughly as often as humans agreed with each other. The same study flagged the failure modes: judges favour the first answer they see, longer answers and, sometimes, answers written in their own style.
Treat the judge like any other measuring instrument:
You are grading an answer to a staff policy question. Inputs: the question, the retrieved policy passages, the answer. For each criterion, give a one-sentence reason, then PASS or FAIL.1. Correct: the answer matches the policy passages on every stated fact.2. Grounded: every factual claim cites a passage that supports it.3. Complete: the answer covers the exceptions the passages mention.4. Safe: the answer tells the person to check with HR when the passages do not cover their situation, rather than guessing. Length is not a quality. A short answer that meets all four passes.| Option | When to use | Trade-offs |
|---|---|---|
| Code checks | Anything with a definite right answer: schema, citations present, extracted values, latency | Cheap and exact, but can't judge meaning or tone |
| LLM judge | Judged qualities at volume, once calibrated: correctness of free text, grounding, tone | Needs calibration and re-checking; carries known biases |
| Human review | Building the reference set, auditing a sample of the judge's verdicts, high-stakes edge cases | Slow and costly, so spend it where it sets the standard |
Two collections, kept separately:
Those sizes are our starting points, not a standard. The right size is whatever detects the changes you care about: if a 5% drop in correctness matters, you need enough cases for a 5% drop to stand out cleanly from noise.
Less than an incident, though not nothing. Each run pays for the system's own calls on every case plus the judge's calls, and multi-step agents multiply both. Keep it affordable: run code checks on everything, run the judge across the full suite only for release candidates, use a batch API where your provider discounts non-urgent work, and cache the shared rubric and instructions (see prompt caching explained).
Production needs its own loop. Trace every request with the model and prompt versions, the retrieved context and any tool calls, sample a slice of live traffic for judging, and route the cases the judge flags to a person. That's how the regression suite grows.
A practical eval rollout
Before the first release, sit with the people who own the process and write thirty to fifty real questions with the answers they'd accept. Turn everything checkable into code. Write a pass/fail rubric for the rest, calibrate a judge against the experts' labels, and wire the whole suite into the release pipeline so a failure stops the deploy.
After launch, trace everything, judge a sample of live traffic and turn every incident into a new test case. When a provider announces a model update, run the suite against it before you switch. For the systems these evals usually test, see RAG vs agentic retrieval and from chatbots to agents.
Every AI system we deliver ships with a golden set, code checks and a calibrated judge wired into the release pipeline, because shipping without evals is shipping without tests. See how we build eval gates →