How to become an AI Evals Engineer
Step by step and free: 12 phases, 86 topics and 284 graded practice questions.
Open any topic and mark it Learning, Done or Skip to track your progress. Sign in to save it to your account.
0 of 86 done · 0 learning · 0 skipped · Start with the first topic
Saved on this device only. Sign up free or sign in to keep your progress everywhere.
It's saved on this device only. Sign up free to keep it everywhere; your marks move into your account.
What is an AI Evals Engineer?
An AI evals engineer measures what a model or AI product actually does, so a team can tell whether a change made it better or worse. They read traces to find failure modes, build eval datasets, choose metrics, write and validate LLM judges, run statistics on the results, and wire regression suites into CI. Engineers, researchers and product managers use their numbers to decide what ships.
Who this roadmap is for
Machine learning and software engineers, data scientists and QA engineers who want to own quality for LLM products and agents. You should write Python, know basic statistics and have called a model API. AI engineers whose evals have outgrown spot checks fit well. It assumes programming experience and does not teach it.
What you will be able to do
You will be able to turn error analysis into a failure taxonomy and targeted evals, build representative, uncontaminated datasets, pick metrics and validate an LLM judge against human labels, report confidence intervals instead of single scores, evaluate RAG answers and agent trajectories, and gate releases with CI and production monitoring.
The AI Evals Engineer roadmap
AI Evals Engineer
-
Phase 1 Foundations of AI evaluation
-
Phase 2 Error analysis and failure diagnosis
-
Phase 3 Building eval datasets
-
Phase 4 Choosing metrics
-
Phase 5 Model graders: LLM-as-judge
-
Phase 6 Human evaluation
-
Phase 7 Statistics for evals
-
Phase 8 Harnesses, CI and eval tooling
-
Phase 9 Evaluating RAG and generation tasks
-
Phase 10 Agent and multi-turn evals
-
Phase 11 Benchmarks, fine-tunes and safety evals
-
Phase 12 Online evaluation, monitoring and reporting
All topics, in order
Mark each topic Learning, Done or Skip, and sign in to save your place to your account. Done is your own word, not passing: a topic is passed when you score 50 or more on its questions. This order is the study plan.
-
Phase 1 · Foundations of AI evaluation
-
What an AI evals engineer does
An AI evals engineer owns measurement: deciding what good means for a product, finding out how it fails, and turning that into numbers that support a ship, block or roll back call. Unlike QA, you design the measuring instrument itself and show it can be trusted; unlike research, the goal is a decision about one product, not a general claim. Start every eval by naming the decision it informs and who will read the result.
Reading
- Husain and Shankar: what are AI evals? hamel.dev
- Anthropic: Demystifying evals for AI agents anthropic.com
- Eugene Yan: an LLM-as-judge will not save the product, fixing your process will eugeneyan.com
- OpenAI: evaluation best practices developers.openai.com
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
-
The parts of an eval
An eval has five parts: a task, the inputs it runs on, a grader that scores each output, a metric that rolls those scores up, and a threshold that turns the metric into a decision. A unit test checks one fixed case and passes or fails; an eval scores a sample of variable outputs, so its result is a rate with uncertainty. A public benchmark is an eval someone else built for their own question, so check it asks yours before you trust it.
Reading
- Inspect (UK AI Security Institute): datasets, solvers and scorers inspect.aisi.org.uk
- Anthropic: Demystifying evals for AI agents anthropic.com
- OpenAI: evals guide developers.openai.com
- Hugging Face: the LLM evaluation guidebook github.com
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
-
Eval-driven development
Eval-driven development means a graded set runs on every prompt, model or code change, so you know whether a change helped before users meet it. The loop also runs the other way: each reported failure becomes a new case, so the set grows from real problems rather than imagined ones. Keep a small fast set for every change and a fuller one before release, and let no bug fix land without the case that proves it.
Reading
- Anthropic: define success criteria and build evaluations platform.claude.com
- OpenAI: evals guide developers.openai.com
- Hamel Husain: your AI product needs evals hamel.dev
- Husain and Shankar: should I practise eval-driven development? hamel.dev
Start the 4 questionsTest yourself on this topic
4 graded questions · scored out of 100 with feedback · free
-
Defining success criteria
Success criteria turn a vague goal such as helpful or accurate into checks a grader can apply the same way every time: cites a source for every claim, answers in under 150 words, declines to give dosing advice. Agree them, with their thresholds, before anyone sees a score, because a bar set after the results tends to land wherever the current system already is. Expect criteria to sharpen once you read real outputs, and record each change.
Reading
- Anthropic: define success criteria and build evaluations platform.claude.com
- Shankar et al.: Who Validates the Validators? (criteria drift) arxiv.org
- OpenAI: evaluation best practices developers.openai.com
Start the 4 questionsTest yourself on this topic
4 graded questions · scored out of 100 with feedback · free
-
Capability evals and regression evals
A capability eval asks what the system cannot yet do well, so it should start with a low pass rate that leaves the team room to climb. A regression eval asks whether it still does what it used to, so it should sit near 100% and any drop means something broke. Run both on every change. Once capability cases pass reliably, graduate them into the regression suite and write harder ones, since a set stuck at 100% shows no progress.
Reading
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
-
Validity: measuring what you mean
Validity asks whether a score measures the thing you care about or only something that travels with it. Answer length, word overlap or a judge's taste can track quality at first and drift later, and once a team is rewarded for moving a number it finds the cheapest ways to move it (Goodhart's law). Write down the quality you mean, check the score against human judgment of it regularly, and retire a metric once gaming it is easier than improving.
Reading
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
Chapter 1 lab
Write the instruction for an assistant that builds a team's first eval before a prompt change ships
A prompt lab that closes the chapter: you write the instruction, and it is graded on a rubric.
Start the lab -
-
Phase 2 · Error analysis and failure diagnosis
-
Reading traces before writing evals
A trace is the full record of one interaction: the input, every model and tool call, the documents retrieved and the final output. Read a sample of real traces before writing any eval, because the failures you guess in advance are rarely the ones users hit. Use a viewer that shows a whole trace on one screen and makes notes quick, and keep reading (at least 100 traces as a rule of thumb) until new ones stop showing new kinds of failure.
Reading
- Husain and Shankar: what is a trace? hamel.dev
- Husain and Shankar: what makes a good interface for reviewing outputs hamel.dev
- Inspect: log viewer inspect.aisi.org.uk
- Arize Phoenix: LLM traces arize.com
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
-
Open coding: noting what went wrong
Open coding means writing a short free-text note on each trace about what went wrong, before any categories exist. Note the first thing that failed, since later errors often follow from it, and describe the behaviour concretely (offered a viewing slot the calendar did not have) rather than labelling it (hallucination). Categories fixed up front make you see only what you expected. Husain and Shankar now call this trace review error discovery.
Reading
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
-
Building a failure taxonomy
Axial coding groups your open notes into a small set of named failure modes, each with a one-line definition and a real example, drawn so that the modes do not overlap. A model can propose the first grouping, but you check every cluster against the notes behind it. Expect to split, merge and rename modes as more traces arrive; a taxonomy that never changes usually means you stopped reading.
Reading
Start the 4 questionsTest yourself on this topic
4 graded questions · scored out of 100 with feedback · free
-
Counting and ranking failure modes
Once each trace is tagged with its failure modes, count them: a few modes usually account for most failures. Rank by frequency times severity, because a rare failure that leaks personal data matters more than a common formatting slip, and note which fixes are cheap. Measure and fix the top of that list first, then count again after each change, since removing one mode often exposes the next.
Reading
- Husain and Shankar: why error analysis matters and how to do it hamel.dev
- Pareto analysis (Wikipedia) en.wikipedia.org
- Failure mode and effects analysis (Wikipedia) en.wikipedia.org
- Microsoft Responsible AI: Error Analysis toolkit erroranalysis.ai
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
-
Specification or generalisation failure?
Many failures are specification failures: the model was never told what you wanted, such as a length limit, a format or when to hand off to a person. Fix those in the prompt or spec first and recheck, because an eval for an unstated rule mostly measures the gap in your instructions. What still fails once the instruction is clear is a generalisation failure, and that is where a lasting eval earns its upkeep.
Reading
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
-
Isolating and diagnosing failures
A wrong final answer rarely says which component caused it. Score each stage on its own (was the right document retrieved, did the answer use it, was the right tool called with the right arguments) and run ablations that change one part at a time, such as handing the generator the correct passage. Find the failing stage before changing anything, or you will tune the part that was working.
Reading
- Anthropic: define success criteria and build evaluations platform.claude.com
- Which Agent Causes Task Failures and When? (failure attribution) arxiv.org
- Husain and Shankar: how to evaluate a RAG system hamel.dev
- Ragas documentation docs.ragas.io
Start the 4 questionsTest yourself on this topic
4 graded questions · scored out of 100 with feedback · free
-
From failure mode to targeted eval
Each failure mode worth measuring gets its own check that returns pass or fail. Use code when an objective rule catches it (a regex, a schema, a database lookup) and a model judge only when it takes judgement, such as tone or whether a claim is supported. Collect real pass and fail examples of the mode from your traces before writing the check, so you can show it catches the failure and leaves good outputs alone.
Reading
- Husain and Shankar: should I build evaluators for every failure mode? hamel.dev
- Husain and Shankar: how do I know if I can trust my automated eval? hamel.dev
- OpenAI: graders developers.openai.com
- Hamel Husain: using LLM-as-a-judge for evaluation hamel.dev
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
Chapter 2 lab
Write the brief for a failure-attribution pass over an agent's traces
A prompt lab that closes the chapter: you write the instruction, and it is graded on a rubric.
Start the lab -
-
Phase 3 · Building eval datasets
-
Curating a representative eval set
An eval set vouches only for the inputs it contains. Build it from the real distribution of use, then add hard, rare and adversarial cases on purpose, because a set of easy common questions cannot speak for the cases that cause complaints. Write what the set covers and what it leaves out next to every score, so nobody reads 95% on English billing questions as a verdict on the whole product.
Reading
- Husain and Shankar: how many examples do I need for an eval? hamel.dev
- Ribeiro et al.: Beyond Accuracy, behavioral testing with CheckList arxiv.org
- Anthropic: define success criteria and build evaluations platform.claude.com
- Hugging Face: Evaluate huggingface.co
Start the 4 questionsTest yourself on this topic
4 graded questions · scored out of 100 with feedback · free
-
Sampling from production logs
Production logs are the best source of eval inputs because they show what users really ask. A random sample shows the typical case; a stratified sample guarantees rare segments enough rows; a failure-weighted sample, drawn from retries, complaints or low scores, finds problems faster but must never be reported as typical. Scrub personal data before traces leave the logging system, and confirm your privacy notice and data terms allow this use.
Reading
- Husain and Shankar: sampling production traces for review hamel.dev
- Husain and Shankar: error analysis on sensitive production traces hamel.dev
- Stratified sampling (Wikipedia) en.wikipedia.org
- Microsoft Presidio: detecting and redacting personal data microsoft.github.io
- NIST SP 800-188: de-identifying government datasets csrc.nist.gov
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
-
Coverage and slices
A slice is the subset of cases that share a tag, such as intent, language, user type or difficulty. Pick the dimensions where you expect quality to differ, tag every case, and size each slice you plan to report: with 20 cases, one failure moves the slice by five points. An overall score can hold steady while a small slice collapses, so report the slices that matter beside the total.
Reading
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
-
Generating synthetic eval data
Synthetic data fills gaps when logs are thin or the product has not launched. Asking a model for test queries yields bland near duplicates, so define dimensions of variation first (persona, intent, difficulty, phrasing), write combinations of their values by hand, then have a model write one natural input per combination. Aim generation at the failures you suspect and the slices your logs lack, and swap in real data as it arrives.
Reading
Start the 4 questionsTest yourself on this topic
4 graded questions · scored out of 100 with feedback · free
-
Checking synthetic data against reality
Generated cases need checks before they count. Measure diversity (how many are near duplicates), realism (would a real user write this; compare with logs once you have them) and difficulty (does any system fail them). Watch for self-bias: research finds that test sets written by a model favour that model, so generate with a different model family from the ones you compare, and keep real cases as the reference.
Reading
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
-
Golden data and label quality
An eval can be no more correct than its reference labels, and even well-known public test sets contain label errors. Treat labels as a measured artifact: have two people label a sample, settle disagreements with a written rule, record every acceptable answer rather than one author's phrasing, and date each label so stale facts get refreshed. When the system fails a case, check the label before you blame the model.
Reading
- Northcutt et al.: Pervasive Label Errors in Test Sets arxiv.org
- Husain and Shankar: what to do when a gold eval set becomes stale hamel.dev
- Data-centric AI datacentricai.org
Start the 4 questionsTest yourself on this topic
4 graded questions · scored out of 100 with feedback · free
-
Dev sets, held-out sets and versioning
Keep the set you tune against apart from the set you report on: once you have studied a case to fix a prompt, it measures how well you fitted it, not how the system generalises. Freeze each version of the held-out set with an id and a content hash, so this month and last month compare like for like. Refresh on a schedule, and when you switch versions, run both once and report them side by side.
Reading
- Google ML Crash Course: dividing the original dataset developers.google.com
- Blum and Hardt: The Ladder, reliable leaderboards and adaptive overfitting arxiv.org
- Recht et al.: Do ImageNet Classifiers Generalize to ImageNet? arxiv.org
- DVC: data version control documentation doc.dvc.org
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
-
Preventing train/eval contamination
Contamination happens when eval items, or close paraphrases of them, reach a model's training or tuning data, so a test of generalisation becomes a test of memory. Separate eval data from training data by source and by date, run near-duplicate checks that catch rephrased items as well as exact copies, and keep a control set written after the model's training cutoff. Treat a public benchmark score as suspect until someone has checked for leakage.
Reading
- NLP evaluation in trouble: measuring data contamination per benchmark arxiv.org
- Rethinking benchmark contamination with rephrased samples arxiv.org
- Oren et al.: Proving Test Set Contamination in Black Box Language Models arxiv.org
- Dodge et al.: documenting the C4 corpus (benchmark text found in training data) arxiv.org
Start the 4 questionsTest yourself on this topic
4 graded questions · scored out of 100 with feedback · free
Chapter 3 lab
Write the instruction that curates an eval set from raw logs
A prompt lab that closes the chapter: you write the instruction, and it is graded on a rubric.
Start the lab -
-
Phase 4 · Choosing metrics
-
Choosing the right metric
A good metric moves only when the thing you care about improves. Accuracy hides failure under class imbalance, ranking tasks need ranking measures, and open-ended generation needs task-specific criteria rather than word overlap. Before adopting a metric, list the ways it could rise while users are worse off, and check that it agrees with human judgment on a sample of real outputs.
Reading
- scikit-learn: model evaluation scikit-learn.org
- Hugging Face: choosing a metric for your task huggingface.co
- Husain and Shankar: should I use ready-to-use evaluation metrics? hamel.dev
- The Problem with Metrics is a Fundamental Problem for AI arxiv.org
Start the 4 questionsTest yourself on this topic
4 graded questions · scored out of 100 with feedback · free
-
Deterministic checks
Deterministic checks grade with code: exact match after normalising text, regular expressions, JSON schema validation, running generated code against tests, or assertions on the end state of a database. They are cheap and give the same verdict every run, so reach for one first whenever an objective rule can decide pass or fail. Their weakness is brittleness: try them on correct answers worded differently so they do not fail good outputs.
Reading
- OpenAI: graders developers.openai.com
- Inspect: scorers inspect.aisi.org.uk
- JSON Schema json-schema.org
- Promptfoo: deterministic assertions promptfoo.dev
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
-
Reference-based text metrics
BLEU and ROUGE count word overlap with a reference answer; embedding similarity and BERTScore compare meaning using a model's embeddings. They suit tasks with a narrow range of right answers, such as translation, but on open-ended answers they reward sounding like the reference: a correct reply in other words scores low, and a fluent answer with one wrong number scores high. Check any such metric against human judgment before it gates a release.
Reading
- Papineni et al.: BLEU (ACL 2002) aclanthology.org
- Lin: ROUGE (ACL 2004 workshop) aclanthology.org
- Zhang et al.: BERTScore arxiv.org
- Novikova et al.: Why We Need New Evaluation Metrics for NLG arxiv.org
- Husain and Shankar: are similarity metrics useful for LLM outputs? hamel.dev
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
-
Classification metrics at an operating point
When a model classifies (a moderation filter, an intent router, a judge returning pass or fail), report the confusion matrix, not one accuracy figure. Precision is the share of flagged items that were right; recall is the share of true items that got flagged; F1 balances them, which only makes sense if both errors cost the same. Set the decision threshold from what each kind of error costs your users, and report the metrics at that threshold.
Reading
- Google ML Crash Course: accuracy, precision and recall developers.google.com
- Google ML Crash Course: thresholds and the confusion matrix developers.google.com
- scikit-learn: model evaluation scikit-learn.org
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
-
Calibration and confidence
A system is calibrated when its confidence matches how often it is right: of the answers given at 80% confidence, about 80% should be correct. Check it by grouping predictions by confidence and comparing each group with its accuracy (a reliability diagram), summarised as expected calibration error. Good calibration lets a product abstain or hand off below a threshold, so report accuracy on the answers it keeps beside how often it declines.
Reading
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
-
Task success and partial credit
On a multi-step task, binary success asks whether the whole job got done, while partial credit scores progress through checkpoints. Partial credit separates a system that got most of the way from one that never started, which helps while you develop. Users mostly feel the binary outcome, though: a booking with the wrong date is a failure however many steps went right. Report both, and let the binary rate gate the release.
Reading
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
-
Building a scorecard
A scorecard tracks one primary metric that reflects the goal, plus guardrail metrics that must not get worse: safety violations, cost per task, latency and refusal rate. Averaging them into one number lets a quality gain hide a safety loss. Fix the primary metric and each guardrail limit before the run, show every number separately, and let each one drill down to the cases behind it.
Reading
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
-
-
Phase 5 · Model graders: LLM-as-judge
-
When a model can grade
An LLM judge reads an output and returns a grade, which lets you score qualities no code can check, such as tone, helpfulness or whether an answer stays on the user's question. It is slower, costlier and less predictable than a deterministic check, and its verdicts must be checked against people before anyone trusts them. Rule of thumb: code when the answer can be checked exactly, a judge when it needs reading, people when the stakes or the domain exceed both.
Reading
- Anthropic: create strong empirical evaluations docs.anthropic.com
- Zheng et al.: Judging LLM-as-a-Judge with MT-Bench and Chatbot Arena arxiv.org
- OpenAI: graders platform.openai.com
- Hamel Husain: using LLM-as-a-judge you can trust hamel.dev
- Eugene Yan: evaluating the effectiveness of LLM-evaluators eugeneyan.com
Start the 4 questionsTest yourself on this topic
4 graded questions · scored out of 100 with feedback · free
-
Writing a judge rubric
A judge is only as consistent as the question you ask it. Give each judge one failure mode, a pass or fail verdict and a written definition of both, with examples taken from real traces, because a 1 to 10 scale drifts and nobody can say what a 6 means. If two people reading your rubric would disagree about a trace, fix the rubric before you give it to any model.
Reading
- Hamel Husain: using LLM-as-a-judge you can trust hamel.dev
- Husain and Shankar: LLM evals FAQ hamel.dev
- Shankar et al.: Who Validates the Validators? arxiv.org
- Anthropic: create strong empirical evaluations docs.anthropic.com
Start the 4 questionsTest yourself on this topic
4 graded questions · scored out of 100 with feedback · free
-
Pointwise, pairwise and reference-guided judging
Pointwise judging grades one output against criteria, pairwise judging picks the better of two, and reference-guided judging compares an output with a known good answer. Each answers a different question: pointwise gives a pass rate you can track over time, pairwise spots small differences between versions but says nothing about whether either is good enough, and a reference supplies facts the judge may not know. Choose the mode from the decision the number feeds.
Reading
- Zheng et al.: Judging LLM-as-a-Judge with MT-Bench and Chatbot Arena arxiv.org
- Eugene Yan: evaluating the effectiveness of LLM-evaluators eugeneyan.com
- OpenAI: graders platform.openai.com
- Kim et al.: Prometheus, fine-grained evaluation capability in LLMs arxiv.org
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
-
Reasoning and examples in judge prompts
Ask the judge for its critique before its verdict, so the verdict follows from reasoning you can read when it disagrees with a person. A few labelled examples, chosen from borderline passes and fails, teach the boundary better than more adjectives do. Have it return a fixed schema, such as a critique field and a pass or fail field, so the harness parses every reply and counts a malformed one as an error, never as a pass.
Reading
- Hamel Husain: using LLM-as-a-judge you can trust hamel.dev
- Liu et al.: G-Eval, NLG evaluation using GPT-4 with better alignment arxiv.org
- OpenAI: structured outputs platform.openai.com
- Anthropic: create strong empirical evaluations docs.anthropic.com
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
-
Judge biases
Model judges lean in predictable directions: toward the answer shown first, toward longer and more confident answers, toward polished formatting and toward text from their own model family. Detect each with a controlled test, such as swapping the order of a pair or padding a correct answer with filler, then design it out: grade both orders, control for length and use a judge from a different family than the system under test.
Reading
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
-
Validating a judge against human labels
Before you trust a judge, collect human pass or fail labels on real traces and split them: a tuning set for improving the judge prompt and a held-out test set for measuring it. Report the true positive and true negative rates on the test set, not raw agreement, which looks high whenever most traces pass. Then correct the judge's observed pass rate for those known error rates, and widen the interval to cover their uncertainty too.
Reading
Start the 4 questionsTest yourself on this topic
4 graded questions · scored out of 100 with feedback · free
-
Choosing, pinning and rechecking the judge
A stronger judge model is usually more accurate and more expensive; a small fine-tuned grader can match it on one narrow task at a fraction of the cost, once you have labels to train and test it on. Call the judge by a dated snapshot rather than an alias that moves, and store its version with every score. Revalidate against your human test set whenever the judge model, its prompt or the traffic it grades changes.
Reading
- Kim et al.: Prometheus 2, an open model for evaluating other models arxiv.org
- Zhu et al.: JudgeLM, fine-tuned LLMs are scalable judges arxiv.org
- OpenAI: models and dated snapshots platform.openai.com
- Anthropic: model deprecations docs.anthropic.com
- Husain and Shankar: LLM evals FAQ hamel.dev
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
Chapter 5 lab
Write the judge prompt that grades groundedness
A prompt lab that closes the chapter: you write the instruction, and it is graded on a rubric.
Start the lab -
-
Phase 6 · Human evaluation
-
When people must grade
Some judgments need people: subjective qualities such as tone or helpfulness, high-stakes domains like medicine or law where a wrong grade is costly, and new tasks where nobody yet knows what failure looks like. Human labels are also the reference every automated grader is measured against, so even a fully automated suite needs a regular human sample. Spend human time where machine grading is least trusted, not thinly across everything.
Reading
- van der Lee et al.: best practices for human evaluation of generated text aclanthology.org
- Chiang and Lee: can LLMs be an alternative to human evaluations? arxiv.org
- Anthropic: create strong empirical evaluations docs.anthropic.com
- Husain and Shankar: LLM evals FAQ hamel.dev
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
-
Annotation guidelines
An annotation guideline is the rubric written for people: what each label means, rules for choosing between labels, worked examples of the borderline cases that cause disagreement, and who to ask when a case fits nothing. Raters fill the gaps in a vague guideline with their own taste, which later shows up as noise you cannot separate from model quality. Version the guideline, and add every disputed case you settle to its examples.
Reading
- Google: Search Quality Rater Guidelines (PDF) static.googleusercontent.com
- Shankar et al.: Who Validates the Validators? arxiv.org
- van der Lee et al.: best practices for human evaluation of generated text aclanthology.org
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
-
Raters: experts, crowds and calibration
Match raters to the judgment: crowd workers can check fluency or obvious errors, but correctness in a specialised field needs people who know it. Start every rater with a calibration round on items with agreed answers, mix hidden gold items into live batches, and track each rater's accuracy over time, because attention and standards drift. Also check that crowd raters are not pasting your task into a chatbot, which quietly turns human labels into model labels.
Reading
- Karpinska et al.: the perils of Mechanical Turk for text generation evals arxiv.org
- Veselovsky et al.: crowd workers widely use LLMs for text tasks arxiv.org
- Snow et al.: Cheap and Fast, But is it Good? (EMNLP 2008) aclanthology.org
- Google: Search Quality Rater Guidelines (PDF) static.googleusercontent.com
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
-
Measuring inter-annotator agreement
Inter-annotator agreement tells you whether your criteria can be applied consistently. Use a chance-corrected statistic, Cohen's kappa for two raters or Krippendorff's alpha for more raters or missing labels, because raw percent agreement looks high whenever one label dominates. When agreement is low, read the disputed items first: usually the rubric is ambiguous, and an eval people cannot agree on cannot be automated or trusted.
Reading
- Inter-rater reliability en.wikipedia.org
- Cohen's kappa en.wikipedia.org
- Krippendorff's alpha en.wikipedia.org
- Artstein and Poesio: inter-coder agreement for computational linguistics aclanthology.org
Start the 4 questionsTest yourself on this topic
4 graded questions · scored out of 100 with feedback · free
-
Preference studies and ratings
In a preference study raters see two outputs for the same input side by side and pick the better one, which is easier and more consistent than scoring each output alone. A Bradley-Terry model turns many pairwise wins into ratings on one scale, much like Elo in chess, with intervals that narrow as comparisons accumulate. Close systems need many comparisons to separate, so report the intervals and treat overlapping ones as a tie.
Reading
- Chiang et al.: Chatbot Arena, evaluating LLMs by human preference arxiv.org
- Bradley-Terry model en.wikipedia.org
- Elo rating system en.wikipedia.org
- LMSYS: Chatbot Arena moves from online Elo to Bradley-Terry lmsys.org
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
-
-
Phase 7 · Statistics for evals
-
Is the change real?
An eval score is an estimate from a sample of questions, so it moves between versions even when nothing real changed. On 100 cases, a pass rate near 50% has a standard error of about 5 points, so a 3 point gain sits well inside the noise. Before calling a win, put an interval on the difference between the two versions; if you cannot tell the change from chance, add cases instead of shipping on hope.
Reading
Start the 4 questionsTest yourself on this topic
4 graded questions · scored out of 100 with feedback · free
-
Confidence intervals for an eval score
A pass rate p on n independent cases has a standard error of roughly the square root of p(1 minus p)/n, and 1.96 of those either side gives a 95% interval. That normal approximation breaks on small sets and near 0% or 100%, where the Wilson interval behaves far better. For metrics with no simple formula, such as F1 or median latency, resample cases with replacement (the bootstrap) and read the interval off the spread.
Reading
- Binomial proportion confidence interval (Wilson interval) en.wikipedia.org
- Bootstrapping (statistics) en.wikipedia.org
- Miller: Adding Error Bars to Evals (Anthropic) arxiv.org
- Bowyer et al.: don't use the CLT in LLM evals with few datapoints arxiv.org
Start the 4 questionsTest yourself on this topic
4 graded questions · scored out of 100 with feedback · free
-
Clustered questions, clustered errors
When several questions come from one passage, conversation or task, their results move together: a model that misreads the passage misses all of its questions. Treating them as independent overstates your evidence, and on popular evals the naive standard error can be under a third of the clustered one. Cluster standard errors on the shared unit, and when designing a set, prefer more clusters to more questions per cluster.
Reading
- Miller: Adding Error Bars to Evals (Anthropic) arxiv.org
- Anthropic: a statistical approach to model evaluations anthropic.com
- Clustered standard errors en.wikipedia.org
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
-
Paired comparisons between two systems
To compare two models or prompts, run both on the same cases and analyse the per-case differences. Much of the variation comes from case difficulty, which both systems share, so pairing cancels it and detects smaller changes than comparing two separate scores. For pass or fail results, McNemar's test uses only the cases where the systems disagree; for other metrics, a paired bootstrap resamples cases and recomputes the difference.
Reading
- Miller: Adding Error Bars to Evals (Anthropic) arxiv.org
- McNemar's test en.wikipedia.org
- Dror et al.: testing statistical significance in NLP (ACL 2018) aclanthology.org
- Berg-Kirkpatrick et al.: statistical significance in NLP (paired bootstrap) aclanthology.org
Start the 4 questionsTest yourself on this topic
4 graded questions · scored out of 100 with feedback · free
-
Run-to-run variance from sampling
With sampling turned on, the same model can pass a case on one run and fail it on the next, so a single run mixes two kinds of noise: which questions you drew and what the model happened to say. Run each case several times and average per case to shrink the second; the variance then splits into a question part and a sampling part. If repeated runs disagree a lot, report that spread too, because users meet it.
Reading
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
-
Power and sample size
Decide the smallest change worth acting on before you build the set, then work out how many cases it takes to detect it with acceptable odds, typically 80% power. The cases needed grow with the inverse square of that difference: halving it roughly quadruples the set. If the budget cannot reach that size, say up front that the set can only catch large regressions, rather than reading meaning into small moves.
Reading
- Card et al.: With Little Power Comes Great Responsibility arxiv.org
- Power of a statistical test en.wikipedia.org
- Miller: Adding Error Bars to Evals (Anthropic) arxiv.org
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
-
Multiple comparisons and slice fishing
Test enough slices and metrics and some will look significant by chance alone: at a 5% threshold, twenty comparisons with no real effect give about one false alarm on average. Name the primary metric and the slices you will report before the run, and treat everything else as exploratory. When many tests really do matter, apply a correction such as Holm or Benjamini-Hochberg, and confirm surprising slices on fresh data.
Reading
- Multiple comparisons problem en.wikipedia.org
- False discovery rate (Benjamini-Hochberg) en.wikipedia.org
- Dror et al.: replicability analysis for NLP across many datasets arxiv.org
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
-
-
Phase 8 · Harnesses, CI and eval tooling
-
Anatomy of an eval harness
An eval harness keeps three parts separate: a dataset of samples, a solver that turns each sample into an output (a prompt, a chain or an agent loop) and a scorer that grades it. Inspect, OpenAI Evals and lm-evaluation-harness each follow a version of this split, so you can swap the model or the grader without touching the rest. The real product is the per-sample log of input, output, score and metadata; the headline number only summarises it.
Reading
- Inspect (UK AI Security Institute): documentation inspect.aisi.org.uk
- Inspect: eval logs inspect.aisi.org.uk
- OpenAI Evals (GitHub) github.com
- EleutherAI: lm-evaluation-harness github.com
Start the 4 questionsTest yourself on this topic
4 graded questions · scored out of 100 with feedback · free
-
Reproducible eval harnesses
A score you cannot reproduce cannot be compared with anything. Pin everything that shapes it: a dated model snapshot rather than an alias, the exact prompt and template, the dataset version, the grader and its version, and the sampling settings. Write them into a run manifest saved beside the results, and keep the raw outputs, so six months later you can tell whether a different number came from the model or from the harness.
Reading
- EleutherAI: lm-evaluation-harness github.com
- Biderman et al.: lessons on reproducible evaluation of language models arxiv.org
- Inspect: eval logs inspect.aisi.org.uk
- OpenAI: models and dated snapshots platform.openai.com
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
-
Regression suites and CI gates
A regression suite holds cases the system already passes, so it should sit near 100% and any drop means something broke. Run it on every prompt, model or code change and block the merge when a key metric falls below a threshold set from its measured noise, not from a round number. Keep the gating suite fast enough that nobody is tempted to skip it, and run the slow, expensive suites nightly or before release.
Reading
- Anthropic: demystifying evals for AI agents anthropic.com
- LangSmith: evaluation docs.smith.langchain.com
- promptfoo: running evals in CI/CD promptfoo.dev
- Hamel Husain: your AI product needs evals hamel.dev
Start the 4 questionsTest yourself on this topic
4 graded questions · scored out of 100 with feedback · free
-
Tracing and eval observability
A headline score you cannot break down tells you something changed but not what. Store a record per case: input, output, intermediate steps such as retrieved passages and tool calls, grader verdict and reasoning, cost and latency, and tags for intent, language or failure mode. Then slice the score by those tags and click through to single traces. OpenTelemetry's GenAI conventions are an emerging shared format for those records.
Reading
- Langfuse documentation langfuse.com
- OpenTelemetry: semantic conventions for generative AI opentelemetry.io
- Arize Phoenix documentation arize.com
- Husain and Shankar: LLM evals FAQ hamel.dev
Start the 4 questionsTest yourself on this topic
4 graded questions · scored out of 100 with feedback · free
-
Testing the eval itself
An eval is code, and its bugs show up as fake failures or fake passes. Unit test each grader on outputs you know are right and wrong, run known-answer canaries with every suite, and keep a reference solution per task that must pass. Audits of agent benchmarks have found graders that accepted weak or even empty answers, so treat a task nobody passes as broken until shown otherwise, and read failing transcripts for tests that reject correct answers.
Reading
- Zhu et al.: best practices for building rigorous agentic benchmarks arxiv.org
- Anthropic: demystifying evals for AI agents anthropic.com
- Inspect: scorers inspect.aisi.org.uk
- Husain and Shankar: LLM evals FAQ hamel.dev
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
-
Running evals at scale
A suite of thousands of cases needs concurrency to finish in time, and that runs into provider rate limits. Retry rate-limit and timeout errors with backoff, and record any case that still fails as an error rather than a model failure, or your pass rate measures the API's health. Cache responses keyed on model, prompt and settings so unchanged cases cost nothing to rerun, and send large nightly runs through batch APIs, which trade latency for lower prices.
Reading
- Inspect: parallelism and rate limits inspect.aisi.org.uk
- Inspect: caching model output inspect.aisi.org.uk
- OpenAI: rate limits platform.openai.com
- OpenAI: Batch API platform.openai.com
- Anthropic: batch processing docs.anthropic.com
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
-
Choosing eval tooling
Open-source frameworks such as Inspect, OpenAI Evals, DeepEval and Ragas give you harnesses and ready-made graders you can run anywhere; hosted platforms add shared trace storage, labelling queues and dashboards for a team. Build yourself only what is specific to your product, which is usually the graders and the data. Whatever you pick, keep datasets and results in plain formats you can export, so switching tools never costs you your history.
Reading
- Inspect (UK AI Security Institute): documentation inspect.aisi.org.uk
- OpenAI Evals (GitHub) github.com
- DeepEval (GitHub) github.com
- Ragas documentation docs.ragas.io
- Arize Phoenix (GitHub) github.com
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
-
What evals cost
Every run pays for model inference on each case, a judge call on each output and sometimes human labels, and agent tasks multiply all three by their steps and trials. Tier the suites: a small fast set on every change, a fuller set nightly, the expensive human and agent sets before release. Track cost per run beside the scores, and prune duplicates and cases that never separate versions before you cut real coverage.
Reading
- Kapoor et al.: AI Agents That Matter (cost-aware evaluation) arxiv.org
- Anthropic: demystifying evals for AI agents anthropic.com
- OpenAI: Batch API platform.openai.com
- Anthropic: batch processing docs.anthropic.com
- Anthropic: prompt caching docs.anthropic.com
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
Chapter 8 lab
Write the instruction that turns a red eval run into a merge decision
A prompt lab that closes the chapter: you write the instruction, and it is graded on a rubric.
Start the lab -
-
Phase 9 · Evaluating RAG and generation tasks
-
Evaluating retrieval on its own
Score the retriever on its own, or you cannot tell a missing passage from a bad answer. Label which passages are relevant to each query, then report recall@k when the answer needs every relevant passage in context, and MRR or nDCG when rank order matters. A corpus is too big to label in full, so pool the top results of several retrievers and judge that pool; a new retriever that finds passages outside it is marked down until you judge them too.
Reading
- Wikipedia: evaluation measures in information retrieval en.wikipedia.org
- Wikipedia: discounted cumulative gain (nDCG) en.wikipedia.org
- BEIR: a heterogeneous benchmark for zero-shot retrieval (arXiv) arxiv.org
- Thomas et al.: LLMs can accurately predict searcher preferences (arXiv) arxiv.org
- Ragas: context recall docs.ragas.io
- NIST TREC: Text REtrieval Conference trec.nist.gov
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
-
Groundedness and citation checks
A grounded answer says nothing the retrieved passages do not support. Split the answer into atomic claims, check each one against the context and report the share supported, because a single verdict on the whole answer hides one invented figure in an otherwise sound reply. Check citations separately: each cited passage must back the sentence it is attached to, since a citation to the right document for the wrong claim still misleads the reader.
Reading
- Ragas: faithfulness docs.ragas.io
- RAGAS: automated evaluation of retrieval augmented generation (arXiv) arxiv.org
- ALCE: enabling LLMs to generate text with citations (arXiv) arxiv.org
- FActScore: fine-grained atomic evaluation of factual precision (arXiv) arxiv.org
- Rashkin et al.: measuring attribution in NLG models (arXiv) arxiv.org
Start the 4 questionsTest yourself on this topic
4 graded questions · scored out of 100 with feedback · free
-
Answer correctness and completeness
Grounded is not the same as correct: an answer can faithfully repeat a stale passage, or be accurate while leaving out what the user needed. Write down the key facts (nuggets) each reference answer must contain, then score missing facts and wrong facts as separate numbers. A missing caveat and a wrong dosage are different failures with different fixes, and one blended similarity score treats them as the same thing.
Reading
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
-
Evaluating abstention
If every question in your set has an answer, the eval rewards guessing and never tests whether the system knows when to stop. Add questions your corpus cannot answer, and grade three outcomes: correct, wrong and declined. Report correct refusals on the unanswerable items next to over-abstention on the answerable ones, because a system that declines everything scores perfectly on the first number and is useless to its users.
Reading
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
-
Summarisation evals
A summary fails in three independent ways: it states something the source does not say, it drops a point the reader needed, or it is too long to be worth reading. Grade each one separately: claim-level faithfulness against the source, coverage of a list of key points written per document, and a length limit checked in code. Overlap metrics such as ROUGE track faithfulness poorly, so never let them stand in for it.
Reading
- SummEval: re-evaluating summarization evaluation (arXiv) arxiv.org
- SummaC: NLI-based inconsistency detection for summarization (arXiv) arxiv.org
- QAGS: asking and answering questions to evaluate summaries (arXiv) arxiv.org
- G-Eval: NLG evaluation using GPT-4 with better human alignment (arXiv) arxiv.org
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
-
Extraction and structured output evals
An output that passes schema validation can still hold the wrong invoice total, so a valid schema is the floor, not the score. Compare field by field against labelled values, normalising first (dates, currency, case, whitespace) so formatting differences are not counted as errors. Report precision and recall per field, and keep blanks apart: a field left empty and a field filled with an invented value are different failures.
Reading
- JSON Schema json-schema.org
- OpenAI: structured outputs platform.openai.com
- Claude docs: structured outputs platform.claude.com
- Pydantic documentation docs.pydantic.dev
- scikit-learn: metrics and scoring scikit-learn.org
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
-
Code generation evals
Generated code is graded by running it against hidden tests in a sandbox, not by comparing its text with a reference. pass@k estimates the chance that at least one of k samples passes; compute it from n samples with the unbiased estimator and state k, because pass@10 flatters a model a user runs once. Weak tests are the biggest threat: a suite that accepts wrong code inflates every score until you add edge cases.
Reading
- Chen et al.: evaluating LLMs trained on code, HumanEval and pass@k (arXiv) arxiv.org
- EvalPlus: is your code generated by ChatGPT really correct? (arXiv) arxiv.org
- SWE-bench: can LMs resolve real-world GitHub issues? (arXiv) arxiv.org
- SWE-Bench Pro: long-horizon software engineering tasks (arXiv) arxiv.org
- LiveCodeBench: contamination-free code evaluation (arXiv) arxiv.org
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
-
-
Phase 10 · Agent and multi-turn evals
-
What makes agent evals different
An agent takes many steps, changes things in the world and can reach one goal by several paths, so a single input and expected output no longer describes the test. Keep the terms apart: the task is the test case, a trial is one attempt at it, the transcript is the full record of that attempt, and the outcome is the state the environment is left in. Run several trials per task, grade outcomes, and read transcripts to check your graders.
Reading
- Anthropic: demystifying evals for AI agents anthropic.com
- tau-bench: tool-agent-user interaction and pass^k (arXiv) arxiv.org
- AgentBench: evaluating LLMs as agents (arXiv) arxiv.org
- Inspect (UK AISI): agents inspect.aisi.org.uk
- Holistic Agent Leaderboard: infrastructure for agent evaluation (arXiv) arxiv.org
Start the 4 questionsTest yourself on this topic
4 graded questions · scored out of 100 with feedback · free
-
Grading the outcome
An agent's final message is a claim, not evidence. Grade the end state of the environment directly: query the database for the booking, diff the files, fetch the ticket and check its fields against the state the task expects. An agent that says it refunded the order fails if no refund row exists. Write the state check so that every valid route to the goal passes, not only the route you had in mind.
Reading
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
-
Grading the trajectory
Trajectory grading checks how the agent got there: which tools it called, with which arguments, in which order. Require a path only where the path is the requirement, such as checking identity before a refund or never calling a delete tool; elsewhere accept any route to the outcome, since strict step matching fails agents that found a shorter one. Argument checks also expose lucky wins, like a right answer from a search on the wrong date.
Reading
- Anthropic: demystifying evals for AI agents anthropic.com
- LangChain agentevals: trajectory evaluators github.com
- LangSmith: evaluate intermediate steps docs.langchain.com
- OpenAI: trace grading platform.openai.com
- Berkeley Function Calling Leaderboard gorilla.cs.berkeley.edu
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
-
Eval environments and sandboxes
An agent eval needs a safe place to act: a container or VM holding the tools, files and services the task expects, reset to the same state before every trial. State left over from an earlier trial causes correlated failures or leaks hints, such as a previous solution sitting in the git history. Mock or record external APIs so results do not depend on a live service, and scope network access and credentials so a bad run cannot touch anything real.
Reading
- Inspect (UK AISI): sandboxing inspect.aisi.org.uk
- UK AISI: the Inspect sandboxing toolkit aisi.gov.uk
- Anthropic: demystifying evals for AI agents anthropic.com
- SWE-bench: Docker evaluation harness (GitHub) github.com
- Terminal-Bench tbench.ai
Start the 4 questionsTest yourself on this topic
4 graded questions · scored out of 100 with feedback · free
-
Consistency across repeated trials
pass@k asks whether any of k attempts succeeds; pass^k asks whether all k succeed, which is what a user who comes back every day experiences. At 60% success per trial, pass^5 is under 8%, so someone running the task five times a week almost always meets a failure. Run several trials per task, report both numbers, and use pass^k whenever the product promises reliability rather than one lucky attempt.
Reading
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
-
Efficiency: steps, tokens and time
Two agents with the same success rate are not equal if one needs forty tool calls and ten times the tokens. Record steps, tokens, cost and wall-clock time on every trial, and report cost per solved task next to accuracy so a cheaper agent that is almost as good stays visible. Set hard limits on steps, tokens and time, and score a run that hits them as a failure: a loop that never ends never helped the user.
Reading
- Kapoor et al.: AI agents that matter (arXiv) arxiv.org
- Holistic Agent Leaderboard: infrastructure for agent evaluation (arXiv) arxiv.org
- Inspect (UK AISI): errors and limits inspect.aisi.org.uk
- Anthropic: demystifying evals for AI agents anthropic.com
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
-
Simulated users
Many agent tasks only happen inside a conversation, so evals use a model playing the user, given a goal, a persona and facts it may reveal only when asked. The simulator is part of the test and can fail: it may give away the answer, forget its goal or show far more patience than real people. Check it the way you check a judge: read its transcripts, compare them with real logged conversations, and fix its prompt before you trust the agent's score.
Reading
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
-
Multi-turn conversation evals
Grading each turn alone misses failures that only show across a conversation, such as a constraint given in turn two and ignored in turn six, or a wrong guess the model never revisits. Grade at both levels: per-turn checks for format and safety, and a conversation verdict on whether the goal was met and earlier context respected. Replaying logged conversations gives real inputs, but once a reply changes, the later user turns may no longer fit.
Reading
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
-
-
Phase 11 · Benchmarks, fine-tunes and safety evals
-
Capability benchmarks and their limits
A public benchmark measures one narrow skill on a fixed set: knowledge questions, coding tasks with tests, agent tasks in a set environment. Benchmarks wear out in three ways: saturation, when top models all score near the ceiling; contamination, when test items leak into training data; and flawed items, when wrong labels or broken tests distort the score. Read a result as evidence about that task, never as a stand-in for your product.
Reading
- When AI benchmarks plateau: a study of benchmark saturation (arXiv) arxiv.org
- Are we done with MMLU? (arXiv) arxiv.org
- BetterBench: assessing AI benchmarks and best practices (arXiv) arxiv.org
- SWE-Bench Pro: long-horizon software engineering tasks (arXiv) arxiv.org
- Epoch AI: benchmarking hub epoch.ai
- Stanford CRFM: HELM crfm.stanford.edu
Start the 4 questionsTest yourself on this topic
4 graded questions · scored out of 100 with feedback · free
-
Running public benchmarks yourself
One model on one benchmark can score several points apart depending on the prompt template, the number of few-shot examples, the rule that extracts the answer, and whether you score text or log-probabilities. That is why your number rarely matches the published one. Use a maintained harness, record every setting in the run manifest, reproduce a reference model's published score as a check, and compare models only under identical settings.
Reading
- EleutherAI: lm-evaluation-harness github.com
- Lessons from the trenches on reproducible evaluation of LMs (arXiv) arxiv.org
- Inspect Evals: community benchmark implementations (GitHub) github.com
- Hugging Face: what's going on with the Open LLM Leaderboard (MMLU) huggingface.co
- Sclar et al.: sensitivity to prompt formatting (arXiv) arxiv.org
- When benchmarks are targets: leaderboard sensitivity (arXiv) arxiv.org
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
-
Leaderboards and arenas
Arenas rank models from crowd votes on side-by-side answers, fitted to Bradley-Terry ratings. They capture what anonymous users prefer on the prompts they choose to type, which leans towards chat, style and length rather than your domain. How an arena is run moves the ranks too: a 2025 study argued that private testing of many variants, with only the best one published, inflates some providers' places. Use arenas to shortlist, not to decide.
Reading
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
-
Comparing candidate models on your tasks
Before switching models, run a private bake-off: every candidate on the same eval set, through the same harness and graders, with each one's prompt tuned fairly. Compare them on paired cases so the interval describes the difference itself rather than two noisy separate scores. Put cost per task and latency percentiles in the same table as quality, because the winner is the cheapest model that clears your bar, not always the top scorer.
Reading
- Miller: adding error bars to evals (arXiv) arxiv.org
- OpenAI: evaluation best practices platform.openai.com
- Claude docs: create strong empirical evaluations platform.claude.com
- Artificial Analysis: model price, speed and quality comparisons artificialanalysis.ai
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
-
Evaluating a fine-tuned model
A fine-tune has to beat two baselines: the base model, and the base model with a good prompt and few-shot examples, against which many gains disappear. Score all three on a held-out set drawn like the training data, then check what the tune may have broken: general skills outside the target task, instruction following and safety behaviour, which fine-tuning can weaken even when the training data is harmless.
Reading
- OpenAI: fine-tuning best practices platform.openai.com
- Qi et al.: fine-tuning aligned LLMs compromises safety (arXiv) arxiv.org
- Catastrophic forgetting in LLMs during continual fine-tuning (arXiv) arxiv.org
- LoRA learns less and forgets less (arXiv) arxiv.org
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
-
Safety evals: capability is not safety
Passing every functional eval says nothing about how the system behaves under misuse. Safety evals measure that separately: attack success rates for prompt injection and data exfiltration, harmful output rates against a policy, and misuse requests the product should refuse. Your part is measurement, not attack design: take attack sets from the red team and public suites, run them as repeatable evals, and track the rates per release.
Reading
- OWASP Top 10 for LLM Applications owasp.org
- OWASP GenAI Security Project: LLM Top 10 genai.owasp.org
- HarmBench: standardized evaluation for red teaming and refusal (arXiv) arxiv.org
- NIST AI 600-1: Generative AI Profile (PDF) nvlpubs.nist.gov
- AgentDojo: prompt injection attacks and defenses for agents (arXiv) arxiv.org
- Inspect Evals: community benchmark implementations (GitHub) github.com
Start the 4 questionsTest yourself on this topic
4 graded questions · scored out of 100 with feedback · free
-
Harm sets graded against a policy
A harm eval is only as clear as the policy behind it. Turn the written content policy into named categories, each with a definition, allowed and disallowed cases and borderline examples; write test prompts for each category, including indirect and multi-turn phrasings; and give the grader the policy text so it applies the same rules. Validate that grader on human-labelled borderline cases, which is where policy graders and people disagree most.
Reading
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
-
Measuring over-refusal
A model that refuses everything passes every harm eval. Pair each harmful prompt set with benign look-alikes that share its surface features, such as how to kill a Python process or the history of a famous poisoning, and measure the refusal rate on both. Report the two rates together, per category, so a safety change that cuts harmful compliance by refusing many more legitimate users shows up as the trade it is.
Reading
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
-
Prompt-injection evals for agents
For an agent, the dangerous input is often not the user's message but text it reads, a web page, an email or a tool result carrying instructions. Injection evals plant such content and measure two rates on the same tasks: how often the attacker's goal is reached and how often the user's task still succeeds. A fixed suite overstates safety because attackers adapt, and defences that hold against stored attacks often fail adaptive ones.
Reading
- AgentDojo: prompt injection attacks and defenses for agents (arXiv) arxiv.org
- AgentDojo benchmark site agentdojo.spylab.ai
- InjecAgent: indirect prompt injections in tool-using agents (arXiv) arxiv.org
- The attacker moves second: adaptive attacks bypass defenses (arXiv) arxiv.org
- OWASP GenAI: LLM01 prompt injection genai.owasp.org
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
-
-
Phase 12 · Online evaluation, monitoring and reporting
-
Online eval and A/B testing
Offline evals measure a proxy; live users measure the outcome. Treat the offline score as the gate that decides whether a change may be tried, then let a controlled experiment on real traffic decide whether it ships: randomise by user, fix the primary metric and sample size before launch, and ramp in stages. A change that wins offline and loses online is telling you the offline set is missing something.
Reading
- Kohavi, Tang and Xu: Trustworthy Online Controlled Experiments experimentguide.com
- Google SRE Workbook: canarying releases sre.google
- Spotify Engineering: risk-aware decisions in A/B tests with many metrics engineering.atspotify.com
- Anthropic: demystifying evals for AI agents anthropic.com
Start the 4 questionsTest yourself on this topic
4 graded questions · scored out of 100 with feedback · free
-
Scoring live traffic
Live traffic has no reference answers, so live scoring uses graders that need none: code checks, judges for groundedness or policy, and signals such as refusals or empty tool results. Run them on a sample of traces, stratified so rare but important flows are covered, and budget judge calls like any other cost. Mask personal data before traces reach a grader or a third party, and store each score with its trace id so a drop leads to examples.
Reading
- Langfuse: LLM-as-a-judge evaluation langfuse.com
- LangSmith: online evaluations docs.langchain.com
- Arize Phoenix documentation arize.com
- OpenTelemetry: semantic conventions for generative AI opentelemetry.io
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
-
User feedback as a signal
Explicit feedback such as thumbs is rare and skewed: most users never click, and those who do tend to be the annoyed or delighted few. Implicit signals are plentiful but ambiguous: an edit may be a small fix or a bad answer, a retry may be failure or curiosity, and leaving may mean success. Treat feedback as a pointer to traces worth reading, not as a quality score, and remember the users who left no signal at all.
Reading
- Google PAIR Guidebook: feedback and control pair.withgoogle.com
- Langfuse: user feedback langfuse.com
- Husain and Shankar: LLM evals FAQ hamel.dev
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
-
Guardrail metrics and stop rules
Guardrail metrics are the numbers a launch must not make worse, such as harmful output rate, latency, cost per request or complaints, even while the primary metric improves. Fix each one, its threshold and the action it triggers before the rollout starts, so nobody renegotiates them after seeing the data. Test them as no-worse-than-a-margin checks, not for improvement, and wire the stop rules into the ramp so a breach halts the change.
Reading
- Spotify Engineering: risk-aware decisions in A/B tests with many metrics engineering.atspotify.com
- Kohavi, Tang and Xu: Trustworthy Online Controlled Experiments experimentguide.com
- Google SRE Workbook: canarying releases sre.google
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
-
Monitoring drift
Watch three kinds of drift: inputs (new topics, languages or user types), outputs (longer answers, more refusals, different tool use) and scores (pass rates from live graders). Alert against a stable baseline window, then ask which moved first. Inputs shifting while scores hold means the world changed and the eval set needs new cases; scores falling on unchanged inputs points at the system, often a silent model or prompt update.
Reading
- Chip Huyen: data distribution shifts and monitoring huyenchip.com
- Evidently documentation docs.evidentlyai.com
- Google: the ML Test Score rubric for production readiness research.google
- Google SRE Book: monitoring distributed systems sre.google
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
-
Feeding production back into the eval set
An eval set built before launch slowly stops describing how people use the product. Make the loop routine: every incident and every new failure mode found in traces becomes a labelled case, tagged with its source and date, and passes the same review as any other case. Expect your criteria to drift as well, since reading real outputs changes what you think good means, so revisit the rubric and not only the cases.
Reading
- Shankar et al.: who validates the validators? (arXiv) arxiv.org
- Husain and Shankar: LLM evals FAQ hamel.dev
- Anthropic: demystifying evals for AI agents anthropic.com
- LangSmith: evaluation concepts docs.langchain.com
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
-
Reporting eval results honestly
An eval report exists to support a decision, so lead with the recommendation and what evidence would change it. Give every score an interval, say what the set covers and what it leaves out, state the grader's known error rate and any correction applied, and show slices where the headline hides a drop. Never present the best of several runs or settings as the result; say how many you ran.
Reading
- Miller: adding error bars to evals (arXiv) arxiv.org
- Position: don't use the CLT in LLM evals with few datapoints (arXiv) arxiv.org
- Mitchell et al.: model cards for model reporting (arXiv) arxiv.org
- BetterBench: assessing AI benchmarks and best practices (arXiv) arxiv.org
- Stanford CRFM: HELM crfm.stanford.edu
Start the 4 questionsTest yourself on this topic
4 graded questions · scored out of 100 with feedback · free
-
Practise the AI Evals Engineer roadmap
284 questions, each graded on the server out of 100. Free · no card.
Other AI careers
- Agent Engineer
- AI Alignment Researcher
- AI Data Engineer
- AI Engineer
- AI Governance Analyst
- AI Infrastructure Engineer
- AI Integration Engineer
- AI Product Manager
- AI Red Team Specialist
- AI Reliability Engineer
- AI Research Engineer
- AI Safety Engineer
- AI Security Engineer
- AI Solutions Architect
- AI Strategist
- Computer Vision Engineer
- Context Engineer
- Conversational AI Designer
- Forward-Deployed Engineer
- Inference Optimization Engineer
- ML Engineer
- Multimodal AI Engineer
- Post-Training Engineer