Kolkata ·  
AI engineering
evals
short · 3 min

Error analysis

Reading real outputs, naming the ways they fail, and counting them before you write evals.

updated 29 Sept 2026

A team's dashboard shows their assistant's "helpfulness score" up 10%. They celebrate. Meanwhile their users are still struggling with the same things as before.

How does that happen? The score was a guess, made up front, about what might go wrong. Nobody had checked it against what actually goes wrong. Error analysis is that check, and it's meant to come before you write any evals: read what the system really did, write down what's wrong, group it, count it.

Let's do it on one product. An assistant answers questions from people renting apartments and books tours.

Read, and write a note

First we need traces, the full record of each user session. Around 100 varied ones is a good pool. No users yet? Generate realistic inputs with synthetic test data and run them through.

Now read each trace and write a short note on whatever's wrong, in plain words. No categories yet:

  • "offered a tour on a Sunday, office is closed"
  • "user asked for a person twice, never handed over"
  • "booked the wrong week for 'two weeks from now'"

This is called open coding (it's borrowed from qualitative research). Some habits keep it useful. Note only the first failure in each trace, since an early mistake often causes the later ones. Have someone who knows the domain do it, ideally one person, so the notes stay consistent. And do the first 30 or so yourself before letting an AI tool suggest problems. If it goes first, you start seeing only what it sees.

Group, and count

Next, put similar notes together. "Wrong week" and "misread a relative date" both go under something like date handling. The list of groups is your failure taxonomy. An LLM can help with the grouping. Then count how many traces land in each group; a spreadsheet pivot table is plenty.

This grouping and counting step (axial coding) is the one that matters most. Before it, we have a pile of complaints. After it, we have a ranked list.

This product is a real one, Nurture Boss (the notes above are ours). When they did this, three groups made up over 60% of all problems: awkward conversation flow, failing to hand over to a person, and date handling. Date handling failed about two times in three when users said things like "two weeks from now". So they wrote tests for exactly those cases, fixed the behaviour, and reported date handling going from 33% to 95% success.

When do we stop?

When new traces stop showing new kinds of failure or changing the groups you have. (Researchers call this saturation.) Once you've done the first 30 by hand, an agent can speed things up by searching the rest of the pool for likely examples of each failure, with you accepting or rejecting what it finds.

Each important group then becomes an eval: a code check when a rule can spot it, an LLM judge when it takes judgement. And look at what happened to the dashboard problem. Our metrics now come from failures we saw, not from a menu of generic scores some tool offered.

Two honest caveats. That 33% to 95% is one client's case, reported by the consultant who worked on it, with no sample size. It shows what the method can find, not what you should expect. And it's never finished, because users and the product keep changing. Coming back to it on fresh traces, on a schedule, is the data flywheel.

Further reading