Skip to content
AI Skills Central

Type to search Agent Skills, workflows, tutorials, tools and the glossary.

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.

  • Eval

    A repeatable test that measures how well an AI system performs on a defined set of cases, so you can compare versions instead of guessing.

  • Trace

    A record of every step in one AI request or agent run: prompts, model responses, tool calls, retrieved context, tokens, timing and cost.

  • LLM evaluation

    Measuring AI system quality with datasets, code checks and model-graded tests.

    SkillIntermediate

  • 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.

    Article

  • 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.

    TutorialBeginner40 min