What are AI evals?

Evals are repeatable tests for AI features: a set of realistic inputs, a definition of what a good output looks like, and a way to score results. They tell you whether a prompt, model or code change made your product better or worse.

Traditional software has unit tests with one right answer. AI output varies, so you need tests that judge quality across many examples. That's an eval.

The three parts

  1. A dataset of real or realistic cases, including the hard and the weird ones.
  2. Success criteria: what must be true of a good answer.
  3. A grader: code (exact match, format checks), another model following a rubric, or a human reviewer. Most teams mix all three.

Why this is the PM's job

Writing the success criteria is writing the product spec. "The summary must mention the customer's deadline, must not invent dates, and must fit in three sentences" is both a requirement and a test. PMs who can write evals can steer AI quality directly instead of arguing from anecdotes.

Getting started

  • Collect 20 to 50 real examples. Small and real beats large and synthetic.
  • Read outputs yourself before automating anything. You'll find the failure patterns.
  • Turn each pattern into a check, and run the set on every change.
  • Add every production bug as a new test case.

For a deeper walk-through, read our guide to evals for AI agents.

Articles that mention Evals

All 27 terms in the AI glossary →