Learning paths · Evals · Start here
Evals · Explained

What is an eval?

An eval is a test you run on an AI system to check whether its answers are good enough. It is the AI version of a school exam: the same questions, marked the same way, so you can see whether things are getting better or worse.

In one line: an eval = a set of realistic questions + a way to mark each answer as pass or fail + a score you track over time.

Why AI needs evals

A normal calculator gives the same answer to 2 + 2 every time, so you can check it once and trust it. An AI can answer the same question in different words each time, and some of those answers are wrong in subtle ways. You cannot check it once and forget it.

Evals are how you keep checking, in a consistent way, as you change the prompt, the model, or the product.

An everyday example

Suppose you run a small online shop and use AI to answer customer emails about delivery.

Next month you change the prompt. You run the same 30 emails again. If the score goes to 90%, the change helped. If it drops to 60%, you know to undo it, and you know why.

The three parts of every eval

  1. 1QuestionsRealistic inputs. Start with 20 to 50.
  2. 2MarkingA rule that says pass or fail for each answer. It can be a simple code check, or a rule that another AI or a person applies.
  3. 3ScoreThe percentage that passed. Track it over time.

What an eval is not

Want to try one yourself? Write your first eval in six steps. For terms, see the Jargon Decoder.