Skip to content
bits
Evals that matter · Lesson 1 of 8 · 6 min

One good reply proves nothing

Tutor:

You tweak a prompt. You try it on the message you've been testing with. The reply is better. You ship it.

A week later a customer sends a message you never tried, and the "better" prompt gets it wrong. Nothing warned you, because the only test was your eyes on one reply.

That's the habit this course replaces. An eval is a fixed set of test inputs, each with a way to decide pass or fail, that you run every time you change something. It's a unit test for a prompt.

Tutor:

The failure mode is sampling bias plus non-determinism. You evaluate on the one input you remember, once, and a model's output varies between runs. Here's a prompt change that wins on the tested input and regresses on an untested one.

Version 1 vs Version 2illustrative: made-up numbers that show the idea, not output from a real modelcompare

promptDo you open on Sundays?

Version 1

Yes, we're open every day!

Version 2

Sorry, we're closed on Sundays and Mondays. We're open Tuesday to Saturday, 9 to 6.

prompt¿Arregláis pinchazos?

Version 1

Sí, arreglamos pinchazos por 15 libras.

Version 2

Yes, we fix punctures for £15.

Tutor:

Version 2 fixed Sundays and quietly stopped answering in Spanish. If you'd kept both messages as test cases and re-run them after the change, you'd have seen it in seconds.

Tutor:

The vocabulary, as Anthropic's agent-evals guide defines it:

  • Task (test case): defined inputs plus success criteria.

  • Trial: one attempt. Outputs vary between runs, so you run several and report a rate, not a single result.

  • Grader: logic that scores some aspect of the result: code, a model, or a person.

  • Transcript: the full record of a trial (outputs, tool calls, intermediate results). You read these when a case fails.

  • Eval suite: a set of tasks measuring one capability or behaviour.

Two kinds of suite matter early. Capability evals start with a low pass rate: they're the hill you're climbing. Regression evals should pass at close to 100%: they catch you sliding back.

Avoid generic scores such as "helpfulness: 4.2". Husain and Shankar call them false confidence. They measure something abstract, not the failures your users actually hit.

Tutor:

The rest of the course builds this up one piece at a time: where good test cases come from, how code grades them, when to bring in a model as judge, how to check that judge, and how to keep it all running.

quick check+20 neurons
Tutor:

Your new prompt gives a great reply to the message you always test with. What should you do before you ship it?

    Pick one option

    Pick one, then Check.