Back to list

Can you trust AI to evaluate AI?

Jim Lin
AGIProduct

Building AI products comes with a peculiar problem: how do you know whether an answer is any good?

With traditional software you write unit tests. Fixed input, fixed output; right is right and wrong is wrong. AI systems don't work like that. The same question can get a good answer today and a worse one tomorrow. Change the prompt, change the model version, even change the context window length, and the results can be wildly different.

I've been building a customer support agent lately: 200-plus knowledge documents, and users asking all kinds of questions every day. One day I caught myself judging answer quality by "feel": this reply looks fine, that one seems a bit off. After two weeks of that, I knew I couldn't keep going this way. I did some research, and it turns out there's already plenty of practice and consensus on this.

Why you need an eval system

An evaluation system exists for exactly two reasons:

  • So the agent's existing abilities don't regress as you ship new features
  • So you can measure whether the agent stays within the scope of abilities you defined, without drifting either way

Building an eval system is really about setting the standard for "what good looks like". That standard should be set by people.

When AI can evolve on its own (knowledge base updates, prompt changes, model upgrades), how do you make sure it evolves in the direction you want? Without an evaluation standard, you have no way to steer.

It's the same logic as a bug tracker. There will always be questions in production that fall outside the agent's abilities. Add those edge cases to the eval dataset, check whether later iterations fix them, and you get a loop that keeps improving.

Defining a "good answer"

For a Q&A system, there's broad consensus on what "good" covers:

  • Is it faithful to the facts (Faithfulness)
  • Does it match the required tone (Tone)
  • Does it hallucinate (Hallucination)
  • Does it correctly refuse unreasonable requests (Safety)

I didn't invent these. The industry has built up a lot here already. The interesting part comes after you build the system and run a first round: different business contexts need different weights on each dimension. Which metrics matter more to you? Does factual accuracy come before tone and style? Those are product calls, not technical ones.

The AI judge's bias

Using AI to evaluate AI sounds like letting a player referee their own game. And that problem is real.

A NeurIPS 2024 paper, Self-Preference Bias in LLM-as-a-Judge, studies exactly this: when one model generates an answer and the same model (or one from the same family) grades it, the scores come out noticeably higher. Models tend to think their own style and phrasing are "better".

What I do in practice: the agent that generates answers and the agent that evaluates them use different models, and the evaluator should be the stronger one. For example, DeepSeek answers and Claude grades. That cuts self-preference as much as possible.

There are absurd moments. Some scores come out ridiculously low, and when I look by hand, the answer is fine; the "reference answer" in the eval set is outdated, or was never quite right in the first place. Which tells you the eval system needs maintenance too. The standard isn't set once and done.

Eval sets a reference baseline

I'm clear about what eval results are for: a reference baseline.

If the total score drops from 90 to 70 after an iteration, something is definitely wrong and I go digging. If it holds steady between 85 and 90, that's normal noise. I won't write off the whole system because one item scored low, and I won't relax completely because the total is high.

An eval system tells you "did it get worse". Whether it's "good enough" is still a human call.

The definition of product quality has changed

Doing this really did change how I think about "product quality".

Products used to be built for users interacting with an interface made of many elements and components, with all sorts of paths through it. Quality meant conversion rate, bounce rate, task completion rate.

Now the window between humans and machines is a chat box. Judging quality means analyzing how the user and the agent interact in each turn of the conversation. The user asks a question: did the agent take the right action, were the retrieved documents relevant, was the reply complete and accurate? If the actions are wrong, the answer is very likely wrong too.

Quality is no longer a static metric. It's a dynamic, turn-by-turn process you have to keep watching.

My take

The core value of an eval system isn't scoring the AI. It's giving iteration a direction. Without it, optimizing is like the blind men and the elephant, each guessing from the one part they can touch. With it, every change has a reference point.

But there's a subtle philosophical problem here: when AI helps set the evaluation standard itself (say, by extracting reference answers from documents), the definition of "good" becomes nested. That means the people maintaining the system have to keep scrutinizing the standard itself.

An eval system isn't a nice-to-have. It's infrastructure. The earlier you build it, the less your later iterations spin out of control.

References