Skip to content

Knowledge Base

The AI eval pipeline

An eval pipeline is how a product team tests an AI feature automatically, so every change shows whether it made things better or worse.

Read the map left to right. A fixed test set runs through one version of the feature, gets scored, and the scores are compared with the current version before a person decides. A box drawn inside another box is part of it. Click any box for the detail.

Running exampleThe job-screening agent from Error analysis and AI evals. It reads job postings and gives each a verdict: Apply, Your call or Skip. Its mistake types and build figures are real; the pipeline numbers are illustrative until the pipeline is built. Companies are anonymised.

Terms used on this page

Eval
a check that scores the AI's outputs.
Test set
a fixed list of inputs, each with the answer you expect.
Label
the expected answer, set by a person.
Baseline
the current version's score, before any change.
Variant
a version of the feature with one change.
Run
one pass of a version through the test set; every run produces every eval's score.
Harness
the script that runs everything with one command.
Code check
an eval written as plain code, for rules with an objective answer.
AI judge
a second AI that gives Pass or Fail on one kind of mistake.
Catch rate (true positive rate, recall)
of the outputs that really are bad, the share the judge flags.
Pass rate (true negative rate)
of the outputs that really are good, the share the judge correctly passes.
Held-out set
labelled cases kept aside and never used to tune the judge.
Wobble
the run-to-run variation in AI outputs when nothing has changed.
Cost driver
what makes a cost happen (every use, or once per thing and then reused).
Token
a small piece of text, roughly three-quarters of a word; AI providers charge per token.

The pipeline, left to right

  • A person does it
  • Automated step
  • Check on the checks
  • Outside the flow
Three kinds of eval
recorded with them
Then the loop repeats: an adopted variant becomes the new baseline, and each newly confirmed failure joins the test set.
Not part of the pipeline. An A/B test measures what real users do, which the test set can't show.