AI Evals
Replace "it felt better in my testing" with a number that survives the next prompt change
Category: MLOps & Production AI
On this page: why evals matter, the core modules, a worked example, then interview prep.
Helpful first: basic familiarity with what a prompt and an LLM API call are. No statistics or ML-research background is assumed.
Why AI Evals?
A traditional function either returns the right answer or it doesn't — a unit test is a clean pass/fail. An LLM's output is open-ended text, and "is this response good" rarely has one objectively correct answer. That ambiguity is exactly why teams fall back on "I tried it a few times and it seemed better" — a judgment that feels reasonable in the moment and is almost useless for proving a change didn't quietly break something else.
Evals replace that gut check with a repeatable measurement: a fixed set of representative inputs, a way of scoring the output against each one, and a number that can be compared across prompt versions, model versions, or weeks of production drift. Without that number, a prompt change that improves ten examples a developer happened to try and silently degrades forty others that nobody checked will ship anyway.
Analogy — Evals are a pilot's checklist, not a vibe check. A pilot doesn't decide a plane is ready to fly because the engines "sounded about right" on the last flight; they run the same fixed checklist every single time, specifically because memory and impression are unreliable at catching a regression a careful, repeated check would catch immediately. A golden eval set plays the same role for an LLM system — the same fixed set of checks, run the same way, every time something changes.
The Three Pieces of Any Eval Setup
Skipping any one of the three breaks the whole exercise: no golden set means there's nothing consistent to measure against; no defined scoring method means two people reviewing the same output disagree about whether it passed; no tracked number means even a good one-off measurement gets lost the next time someone asks "did this get better or worse."
Learning Modules
Module 01 — Building a Golden Set
What goes into the fixed set you measure every change against
Topics covered:
A golden set built entirely from easy, obvious examples will show every prompt change as a success, because it never tests anything the system was already struggling with. Pulling in real production inputs that previously caused problems — not just invented happy-path examples — is what makes the set worth running at all.
Module 02 — Scoring Methods
Exact match, rubrics, LLM-as-judge, and human review — each with a real trade-off
Topics covered:
Exact-match scoring works well for a task with one correct answer (a classification label, a structured extraction field) and fails immediately for open-ended generation, where two differently-worded answers can both be correct. LLM-as-judge scales to open-ended output but introduces a new question worth taking seriously: what happens when the judge itself is wrong, confidently.
Module 03 — Regression Detection and Production Monitoring
Catching a quality drop before it reaches users, and noticing it if it does anyway
Topics covered:
A golden set run once at release time catches a regression introduced by that specific change, but says nothing about drift that accumulates gradually in production — a model provider's silent update, a slowly shifting user population, a prompt dependency that degrades over weeks. Both the fixed golden-set check and ongoing production sampling are doing different, necessary jobs.
Production Example
Practice: [25 free Evals & LLMOps questions →](/practice/ai-evals-llmops-practice)
Interview Prep
Frame it as the problem you hit, what you did about it, and the outcome — aim for about a minute each.
Likely Questions
Q1. Why is exact-match scoring usually the wrong default for evaluating an LLM's output?
A: Problem: exact-match assumes there's one correct string, which holds for a classification label but breaks immediately for open-ended generation where several differently-worded answers can all be correct. Solution: a rubric or LLM-as-judge scoring method evaluates whether the response meets a set of criteria, rather than whether it matches one fixed string character for character. Result: a genuinely good response doesn't get marked wrong just because it phrased the same correct answer differently than the one example in the golden set.
Q2. What's the risk of relying only on a golden set checked at release time, with no ongoing production monitoring?
A: Problem: a golden set run once catches a regression the current change introduced, but has no way to notice gradual drift that accumulates afterward — a model provider's own silent update, a shifting user population. Solution: sampling real production traffic for ongoing evaluation, alongside the fixed golden-set check at release, covers both the immediate-regression case and the slow-drift case. Result: a quality problem that built up gradually over weeks gets caught by monitoring, instead of surfacing only when a user complaint forces an investigation.
Q3. A golden set built when the product launched has never been updated since. What's the risk?
A: Problem: real user inputs change as a product evolves, and a static golden set stops reflecting what the system actually has to handle in production. Solution: periodically refreshing the golden set with real, recent inputs — including ones that previously caused problems — keeps the measurement honest about current reality rather than a snapshot of how users behaved at launch. Result: a prompt or model scoring well against a stale set stops being false reassurance about how it performs against what users are actually sending today.
More questions live in the Interview Q&A tab; Cheatsheets has the scoring-method comparison in one place.

