All notes & talks
NoteOctober 2026

Did the new version get better? Building an evaluation system for an AI agent

An agent can word every answer well and still make the wrong call. How we turned "this feels better" into scores for answers and decisions, per quality axis, per pipeline stage, and one number for the whole agent, so every change since is measurable.

A client came to us with an AI agent already running in production. It worked with the company's customers in a specialized field, in English and in several other languages. It did more than answer questions: it chose which tools to call, pulled text, images and short videos from a knowledge base written by experts, decided when a conversation needed a person from the team, and decided when to offer more help or check back later.

It worked, mostly. The problem was what happened every time someone wanted to change it: a new model, a new prompt, another tool, another source of information. Someone would read a dozen conversations, form an impression, and decide. Nobody could say whether the new version was actually better, or just different.

We built the evaluation system that answers that question. We won't share the client's numbers, and they wouldn't mean much outside their product anyway. What carries over is how the system is built.

Correct is not enough

The first instinct is to grade answers as right or wrong. That turned out to be the smallest part of the problem. Most answers were factually fine. What made users happy or frustrated was everything around the facts.

Two failure modes came up again and again, and they pull in opposite directions. One answer is thorough, careful, and exhausting: it walks the user through everything, including what they didn't ask. Another is short and precise, and leaves the user to work out the next three steps alone. Both are "correct". Neither is what the product wanted. The users in this case were often in the middle of a task, reading on a phone, and needed short, plain, step-by-step answers without professional jargon. For them, length and plain language were part of the quality, not decoration.

Axes, not a grade

So instead of one grade we defined axes, each with its own rubric and scale. Among them:

  • Correctness against a reference answer written by a domain expert.
  • Completeness: did it cover what the user actually needs to act, and only that.
  • Length, against a target range rather than "shorter is better".
  • Plain language: jargon, sentence complexity, reading level.
  • Actionability: can the user do something with it right now.
  • Staying in scope: what the agent should not answer, and how it declines.

Each test question comes with a reference answer and metadata: topic, language, and which axes matter most for it. A question about a safety issue weighs correctness and scope heavily. A how-to question weighs actionability and length.

Answers are only half of it

A chatbot is judged by its answers. An agent is also judged by its decisions: which tool it called, which material it brought, whether it showed a short video where words weren't enough, whether it handed the conversation to a person, whether it offered more help or knew to stop. A wrong decision can ruin an answer that is perfectly worded.

So the test set covers decisions too. Some scenarios are a single question, others a whole conversation, and each comes with the expected actions: which tool, which kind of material, hand off or not, follow up or not. Those are scored like a classifier, not like prose.

Handoffs show why. They are rare, and both kinds of error are costly. Hand off too often and the team drowns in conversations the agent could have handled. Too rarely and users get stuck with an agent that won't let go. It's the same arithmetic as in rare-event detection: look at both error types, at the rate they actually occur.

Three kinds of knowledge

This only worked because three groups brought something the others couldn't.

The domain expert wrote and reviewed the reference answers, and defined what counts as correct, what counts as incomplete, and what must never be said.

The founders, wearing their product hat, defined what a good answer feels like for their users: how long, how warm, when to ask a follow-up question instead of answering, when to stop. Most of the axes above came out of those conversations, not out of a metrics library.

We, as the data science side, turned all of that into something measurable: the test set, the rubrics, the automated scoring (a model that grades each answer against the rubric, often called LLM-as-a-judge), and the aggregation. Just as important, we made sure the scores meant something. The domain expert and the founders went over a sample of scored answers, axis by axis, and wherever their judgment and the score didn't match, we tuned the rubric until they did.

Languages: easy to be good, hard to be right

Getting a fluent answer in another language is easy today. Getting the same answer is not. The nuances are where it breaks: professional terms that have no natural equivalent, or whose literal translation sounds clinical; a tone that is friendly in one language and condescending in another; style rules written in English that quietly stop applying when the answer comes out in a different language, so answers drift longer or more formal.

We handled this in the test set itself. The same questions appear in several languages, each with its own reference answer written for that language rather than translated, and every axis is scored per language. That makes gaps visible: a change that helps in English and hurts elsewhere shows up immediately, instead of in a support ticket.

One number, and many numbers

The scores are reported at three levels, because each answers a different question.

  • One overall score for the whole agent. It answers "did this change make things better?" in a second.
  • A score per axis, overall and per language. It answers "what exactly moved?" A change can raise the overall score while quietly making answers longer or more technical, and only the per-axis view shows that.
  • A score per pipeline stage, as well as end to end: retrieval, routing, tool calls, the agent's decisions, the answer itself. It answers "where did it move?" A better retrieval step doesn't always produce better final answers, and you only see that when you measure both the part and the whole.

What it bought

The real value isn't any single result. It's that from that point on, every change is measurable.

Switching models, whether to cut cost, to speed things up, to move to another provider, because a new model came out, or because the current one is about to be retired. Changing the pipeline: adding a step, splitting one call into several, giving the agent a new tool or a new source of information, changing how retrieval works. Each of these used to be a judgment call. Now each one is a run against the same test set, with an answer at every level: overall, per axis, per language, per stage.

The tooling is the easy part

There are good off-the-shelf platforms for tracing and evaluating agents, several of them open source, and they save real time. Building a thin evaluation harness of your own is also reasonable today, and with AI coding agents it takes days, not months. Either way, the tool isn't where the work is. The work is in the test set, the axes, and making sure the scores match the judgment of the people who know what a good answer is.

It's the same lesson we keep running into in other projects, like our detector for touching objects: evaluate what you actually ship, the way it's actually used.

Takeaways

  • For an agent that talks to people, "correct" is only one axis. Length, plain language, and actionability are part of the quality.
  • Evaluate the agent's decisions, not just its words: tools, material, handoffs, follow-ups. Score them like a classifier, both error types.
  • Define the axes with the domain expert and the product owner, not from a metrics library.
  • Have the expert and the product owner review a sample of the scores, and tune the rubrics until the scores match their judgment.
  • Write reference answers per language, and score every axis per language.
  • Report one overall number, a number per axis, and a number per pipeline stage. Each answers a different question.
  • Once evaluation exists, model switches and pipeline changes stop being judgment calls.

Working on something similar?

We're happy to talk it through.

Get in touch