Evals: proving it works
You tweak the prompt and it 'feels' better. Is it, or did you just break three other cases?
The idea inside
Build an eval set of inputs paired with expected answers, then score every change.
After this lesson
You can explain eval-driven development: test sets, scoring, and catching regressions.
Where it leads
But who grades thousands of open-ended answers? Often, another model.
Inside this lesson
That's the real lesson stage, paused. Claim your pass to operate it.
See how AI actually works, end to end.
This lesson is one stop on the full arc. Unlock all of it, and keep it for life.
What you get
- The 34-lesson main path, a finishable route from a word to agents
- Goal tracks for using AI at work and building AI features
- Boss labs that make you apply a whole act, not just recognize it
- Spaced recall that brings each idea back before you forget
- Course memory: every term defined, with links to where it first appears
- A shareable capability card when you finish the main path
- Lifetime access on every device, every future lesson included
Not videos to watch. You predict, operate the machine, then prove it. That is why it stays.
99 interactive lessons and challenges. No videos, no code.
Free launch pass: lifetime access, no card needed
New here? The first lessons are free to try. Start with lesson 0.1
What this lesson shows
Build an eval set of inputs paired with expected answers, then score every change.
The question it opens with
You tweak the prompt and it 'feels' better. Is it, or did you just break three other cases?
The walkthrough, in the lesson's own words
- Predict: will the edit break anything? Then apply it and watch every row react.
- Evals turn 'vibes' into a number you can defend, and a gate you can automate.
- A toy suite of 5 invented cases; real eval sets run hundreds of them.
- Two cases fail under prompt A, and the edit (B) is meant to fix them. Will B break anything that passes today?
- This is an eval set (a golden dataset): a taste-test panel every new recipe must pass before it goes on the menu, real inputs paired with the right answers. Engineers call this pattern unit tests. Lock in your prediction, then apply the edit and let the table answer.
- Two reds turned green, but one green turned red: the feature-request case now mis-classifies. The number went up, so you'd have shipped the regression on vibes alone. The eval set caught it.
- Ship improvements, not regressions, proven, not felt.
- A CI gate is an automatic check that refuses the change, no human has to catch it. It runs before code is merged: point it at your golden dataset so every prompt change is scored, and the merge is blocked the moment any case regresses, even if the net pass-rate went up.
- Next: exact match works for a single right word, but how do you score a long, open-ended answer where many wordings are correct?
- The eval set you score before shipping is an offline eval: a fixed set you run in the lab. It can go stale or get contaminated, the answers leak into training, so it stops measuring real skill. Online evals watch the live system instead: real traffic, sampled and scored continuously, catching drift an offline set misses. And a red-team set is built on purpose from adversarial and failure cases, prompt injections, edge inputs, known traps, to test the things normal data won't. Strong teams run all three: offline to gate changes, online to watch production, red-team to probe for the worst case.
- Your offline eval has scored 98% for months and the team trusts it, but users keep reporting failures. What's likely wrong, and what would you add?
- The offline set has probably gone stale or leaked into training, so it no longer reflects real use. Add an online eval that samples and scores live traffic, and a red-team set of the failure cases users are hitting. A frozen 98% can hide drift; production and adversarial signals catch what a fixed set can't.
- In plain terms: no human has to catch the regression, the gate refuses the change on its own.
Key takeaway
Evals turn 'vibes' into a number you can defend and a gate you can put in CI.
What you can do after this lesson
You can explain eval-driven development: test sets, scoring, and catching regressions.
Check yourself: What is an eval set for?
- Scoring changes against known cases to catch regressions(correct)
- Making the model run faster
- Labeling production traffic
- Caching the prompt
An eval set scores each change against known cases, so a tweak that helps one prompt but quietly breaks five others gets caught before it ships.
Prefer reading first? This lesson has a companion explainer: LLM evals
Where it leads: But who grades thousands of open-ended answers? Often, another model.
This is the written summary. The lesson itself is interactive: you predict, drag and operate the mechanism above, and the reveal answers you.