Skip to content

Post-training 101, lesson 13

Evals: how you know it worked

Every fix to an AI needs a test that shows it worked. This lesson shows how to build one from your own cases, run it before and after, and keep it honest.

What do you run?

Every example below changes to fit what you pick. The businesses are made up for teaching.

The picture, one step at a time

Each box is one stage. The picture lights up as you scroll.

Step 1 of 7

Measure before you climb

Lesson 5 said: before any fix that costs real money, write a test. This lesson is how. A test of this kind is called an eval, short for evaluation: a fixed set of questions with known answers, run the same way every time. Think of weighing yourself before and after a diet, on the same scale. The picture breaks in one place. A scale cannot learn the test. A model can, if it sees the questions.

Step 2 of 7

Start from real cases

Gather 50 to 100 real cases from answering customers, each with the answer you want. Put the awkward ones in, because those are where models slip. Decide how each answer is marked before you run anything: an exact match, a checker such as a test, or a person choosing the better of two without knowing which is which.

Step 3 of 7

Keep them held back

The test cases must never be used in training, or as examples in the prompt. Once a model has seen the questions, a high score shows it remembered them, not that it can do the work. When test questions leak into training this way, it is called contamination. It happens by accident, because public tests get copied all over the web.

In 2024 Scale AI wrote 1,205 fresh problems in the style of a well-known school maths test. Some models scored up to 8% lower on the fresh ones, a sign they had partly memorised the old test. Most leading models showed little sign of it.

Your best examples are also your test cases. What do you do?

Step 4 of 7

Before and after, on the same test

Run what you have now and write down the score. Make one change: a new prompt, a tool, a tuned model. Run the same cases, marked the same way. Change one thing at a time, or you will not know which change helped. Models do not answer the same way every time, so run each side more than once.

Step 5 of 7

Read the answers that changed

A score tells you how many. It does not tell you which, or why. So read the answers that changed, the ones that got worse first. A score can rise while something that matters breaks, and lesson 3 showed that a model can learn to win a score without doing the job.

Step 6 of 7

A public score is not your task

Labs report scores on public benchmarks: shared tests anyone can run. They are useful for comparing models in general. But a benchmark is somebody else's task, its questions may have leaked, and a model can be tuned to look good on it. Use public scores to choose what to try, and your own test to decide.

A 2025 study of a popular public leaderboard found that one lab had tested 27 private versions of a model there before its release, and labs could choose which scores to show (The Leaderboard Illusion).

A new model beats yours on a public benchmark. What next?

Step 7 of 7

Keep the test, and rerun it

Your test is worth keeping. Rerun it whenever anything changes for answering customers: the prompt, the tools, or the model itself, because labs update their models. Add a case each time something goes wrong in real work. Over a year, it becomes the most useful thing you own about your AI.

Labs that publish their training data now clean it too. Ai2 released a tool with its Olmo 3 models (November 2025) that removes test sets from training data.

Can you trust this result?

Here are four test results from your business. Sort each one: can you trust it, has the test leaked, is it not your task, or is the comparison unfair?

  1. 1You wrote 80 real customer questions with the answers you want. The old and new set-ups ran on them the same week, marked the same way. The new one got 61 right, the old one 48.

  2. 2A model tops a public leaderboard for maths. You want it to answer questions about sizing and delivery.

  3. 3The new prompt was written using the same 80 test questions as its examples.

  4. 4The old set-up was scored on last year's questions and the new one on this month's.

0 of 4 right so far, 4 to go.

A before-and-after test plan

This is what you keep: the steps for a test you can trust, and the rule for public scores.

A before-and-after test plan

  1. 50 to 100 real cases from your work, each with the answer you want, awkward ones included.
  2. Kept out of training and out of the prompt. Nobody tunes against them.
  3. Decide how each answer is marked before you run anything.
  4. Run the old set-up and the new one on the same cases, the same way, more than once.
  5. Read every answer that got worse, not just the score.
  6. Rerun it whenever the prompt, the tools or the model changes.

A change you have not measured on your own cases is a guess, and a public score is somebody else's test.

Next: Lesson 14: Character, how a model gets its personality. Where its manner and values come from, and how to test them.