Evals for AI agents: how to know a change made it better or worse
A set of real cases that runs on every change, so quality stops depending on opinion. How we build it, how we score it, where it misleads, and how we deliver it.
by Zechim
Some teams change a prompt, try three examples, and ship. A week later a customer finds a case that used to work and does not anymore.
Evals are a set of real cases with known good outcomes that run every time something changes. They turn "it feels better" into a number you can compare. This post describes the eval service we deliver.
This post describes the approach we would use. It cites no client results.
What we do
1. Collect real cases
From your logs, your support tickets and your team's own knowledge of what goes wrong. We include the ordinary cases, the hard ones and the ones that failed in the past. Synthetic cases fill gaps and never replace real ones.
2. Define what good means
For each case, the outcome that counts: the right tool called, the right value returned, a refusal where one is needed, a tone the business accepts. Someone from your side signs off on those definitions, because they are product decisions.
3. Choose how to score
Exact checks where an answer is a number or an action. A rubric scored by a model for open text. Human review on a sample to keep the rubric honest. We state which method each score uses.
4. Run it on every change
A prompt edit, a model change, a new tool or a data change triggers the run. The result shows what improved, what got worse and by how much, case by case.
5. Guard the cost and the speed
The same run records tokens, cost and latency per case, so a change that raises quality and triples the bill is visible before it ships.
6. Keep it alive
Failures found in production become new cases.
Where evals mislead
- A model scoring another model has its own bias, so we calibrate the rubric against human review.
- A small set gives noisy scores. We report the number of cases and the spread between runs, and we do not treat small differences as real.
- A set built only from past failures can miss new kinds of failure.
What we do not do
- We do not promise a score. We build the measurement and tell you what it shows.
- We do not tune the agent to the test set. Part of the set stays hidden from whoever edits the prompts.
- We do not replace human judgment on what matters. We make it cheaper to apply.
How we deliver it
- 2 week Discovery. We collect the first cases, define good with you and run a baseline on the current agent.
- 4 to 8 week Pilot. The set, the scoring and the automatic run wired into your workflow, with a report per change.
- Optional ongoing mode. A Fractional AI Lead keeps the set growing and reviews every significant change.
You keep the set, the code and the documentation.
What you need to start
- Access to real conversations or tasks the agent handles, with consent as required.
- Someone who decides what a correct outcome is.
- A place where changes to the agent are made, so the run can be wired in.
If your team ships agent changes without a way to compare them, worth 30 minutes to build the first set together.