Error analysis is the habit of reading failed cases, sorting them into a few named groups and counting each group to decide what to fix next.
It beats guessing and beats adding metrics. The biggest group usually is not the one you expected, so read real failures before you change anything.
Read at least thirty failures. Write a short note for each, then cluster the notes: wrong language, two issues in one message, missing context, tool misuse. Count, rank and fix the top group. Run the eval again and repeat.
Common mistake. Skipping the reading and jumping to a new prompt or a bigger model on a hunch.
In practice. Put failures in a spreadsheet with a column for the cause, review them with a teammate, and turn each cause into a test case or a tagged slice of your golden set.
An eval is a repeatable test for software that uses a model. It has a set of inputs, a way to run your feature on them and a grader that scores each output, and it returns a rate instead of a pass or fail. Run it on every change to a prompt, model or retrieval setting.
A golden set is a collection of real inputs, each paired with a known good answer or a labelling rubric, used to evaluate a model-backed feature. It should cover every category, include deliberately hard cases and be labelled before you look at model output. Keep part of it held out so tuning does not overfit.
For AI systems, observability means recording enough about every request to explain it later: the prompt version, the inputs, the retrieved passages, each tool call, the output, token counts, latency and cost. Traces turn a vague user complaint into something you can read, and failed traces become new test cases.
Cite this page
Eldan Abdrashim. "Error analysis." Eldan.ai, 23 November 2026. https://eldan.ai/glossary/error-analysis.
The date you read it is added when you copy.
BibTeX
@online{abdrashim2026error,
author = {Eldan Abdrashim},
title = {Error analysis},
organization = {Eldan.ai},
date = {2026-11-23},
year = {2026},
month = nov,
url = {https://eldan.ai/glossary/error-analysis},
langid = {english}
}