Error analysis
Definition
Reading a sample of real outputs, labelling what went wrong and grouping the failures before deciding what to measure or fix.
In more detail
It is the step most teams skip and the one that most improves their evals. Counting failure types tells you which fix matters and which metrics are worth automating.
The method is simple: read 50 to 100 real traces, write a note on what went wrong in each, group the notes into categories and count them. The biggest categories decide what to fix and which automated evaluators to build. Repeat after major changes, because the failure mix shifts as you fix things, and include domain experts, who notice errors engineers miss.
Related terms
Read more about Error analysis
- LLM evaluation
Measuring AI system quality with datasets, code checks and model-graded tests.
- Start your evals by reading outputs, not by picking metrics
The fastest way to useful LLM evals is to read real outputs and write down what is wrong. Why error analysis comes before metrics, and how to do it.
- Write your first LLM eval
Turn real outputs into a small test set, add code-based checks in promptfoo and run them in CI to catch regressions on every change.