Skip to content

Knowledge Base

Error analysis and the four AI eval types

Error analysis is how a product team finds an AI feature's real mistakes, counts them, and picks the cheapest reliable way to measure each one. Read the map left to right: look at the data, decide what to do with each mistake, then choose an eval type. Click any box for details.

Running example: an AI feature that screens job postings for a job seeker. It reads a posting, extracts fields like pay and location, makes judgment calls like true seniority, gives a verdict, and writes a short summary.

Real data

Terms

Eval
a repeatable way to measure whether an AI feature is doing its job.
Error analysis
reading real AI outputs and naming how they fail, before writing any tests.
Trace
the full record of one run, from input to final output, including every in-between step.
Open coding
a pass/fail mark plus a short free-text note on what went wrong, written for each trace.
Axial coding
grouping those notes into named mistake categories and counting them.
Failure mode
one named kind of mistake (a category).
Criteria drift
your sense of "good" changes as you read more outputs.
Benevolent dictator
the one domain expert whose judgment sets the quality standard.
Review steps (humans read outputs) Decision Eval types and how to pick one Below the dashed line: the real build
Look at the data
Fix
Eval

The four eval types (peers)

Arrows show the order of work. "Fix" loops back: after a fix, rerun the same inputs and review again. The matching rule links to all four types because it is how you pick among them.

The two documents you'll keep

Error analysis runs on two working documents. Both are shown filled in with the build's real data, so you can copy the format for your own feature.

1. The review sheet

Steps 2–4 WhenWhile reading the outputs, one row per run. WhoThe domain expert writes the pass/fail mark and the notes. The failure-mode column is added during grouping. What it's forThe raw evidence. Every later count comes from it, and its passes become a test set's answer key.

It has a column for every logged step, so the reviewer can check each one against its input. The highlighted columns are the ones the reviewer writes.

One full row: a trial run

More rows, with the step columns hidden

2. The ranked failure-mode table

Steps 4–5 WhenAfter grouping the notes, and again after each rerun. WhoThe same domain expert, with whoever will make the fixes. What it's forDeciding what to fix first and which failure modes get an eval.

Ranked by count weighted by harm, with upstream steps first because their errors flow into everything after them.