SkillHack

How to become an AI Evals Engineer

Step by step and free: 12 phases, 86 topics and 284 graded practice questions.

Practise this roadmap free

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

  1. Phase 1 Foundations of AI evaluation

  2. Phase 2 Error analysis and failure diagnosis

  3. Phase 3 Building eval datasets

  4. Phase 4 Choosing metrics

  5. Phase 5 Model graders: LLM-as-judge

  6. Phase 6 Human evaluation

  7. Phase 7 Statistics for evals

  8. Phase 8 Harnesses, CI and eval tooling

  9. Phase 9 Evaluating RAG and generation tasks

  10. Phase 10 Agent and multi-turn evals

  11. Phase 11 Benchmarks, fine-tunes and safety evals

  12. 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.

  1. Phase 1 · Foundations of AI evaluation

    1. 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.

      Test yourself on this topic

      3 graded questions · scored out of 100 with feedback · free

      Start the 3 questions
    2. 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.

      Test yourself on this topic

      3 graded questions · scored out of 100 with feedback · free

      Start the 3 questions
    3. 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.

      Test yourself on this topic

      4 graded questions · scored out of 100 with feedback · free

      Start the 4 questions
    4. 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.

      Test yourself on this topic

      4 graded questions · scored out of 100 with feedback · free

      Start the 4 questions
    5. 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.

      Test yourself on this topic

      3 graded questions · scored out of 100 with feedback · free

      Start the 3 questions
    6. 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.

      Test yourself on this topic

      3 graded questions · scored out of 100 with feedback · free

      Start the 3 questions

    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
  2. Phase 2 · Error analysis and failure diagnosis

    1. 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.

      Test yourself on this topic

      3 graded questions · scored out of 100 with feedback · free

      Start the 3 questions
    2. 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.

      Test yourself on this topic

      3 graded questions · scored out of 100 with feedback · free

      Start the 3 questions
    3. 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.

      Test yourself on this topic

      4 graded questions · scored out of 100 with feedback · free

      Start the 4 questions
    4. 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.

      Test yourself on this topic

      3 graded questions · scored out of 100 with feedback · free

      Start the 3 questions
    5. 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.

      Test yourself on this topic

      3 graded questions · scored out of 100 with feedback · free

      Start the 3 questions
    6. 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.

      Test yourself on this topic

      4 graded questions · scored out of 100 with feedback · free

      Start the 4 questions
    7. 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.

      Test yourself on this topic

      3 graded questions · scored out of 100 with feedback · free

      Start the 3 questions

    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
  3. Phase 3 · Building eval datasets

    1. 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.

      Test yourself on this topic

      4 graded questions · scored out of 100 with feedback · free

      Start the 4 questions
    2. 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.

      Test yourself on this topic

      3 graded questions · scored out of 100 with feedback · free

      Start the 3 questions
    3. 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.

      Test yourself on this topic

      3 graded questions · scored out of 100 with feedback · free

      Start the 3 questions
    4. 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.

      Test yourself on this topic

      4 graded questions · scored out of 100 with feedback · free

      Start the 4 questions
    5. 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.

      Test yourself on this topic

      3 graded questions · scored out of 100 with feedback · free

      Start the 3 questions
    6. 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.

      Test yourself on this topic

      4 graded questions · scored out of 100 with feedback · free

      Start the 4 questions
    7. 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.

      Test yourself on this topic

      3 graded questions · scored out of 100 with feedback · free

      Start the 3 questions
    8. 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.

      Test yourself on this topic

      4 graded questions · scored out of 100 with feedback · free

      Start the 4 questions

    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
  4. Phase 4 · Choosing metrics

    1. 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.

      Test yourself on this topic

      4 graded questions · scored out of 100 with feedback · free

      Start the 4 questions
    2. 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

      Test yourself on this topic

      3 graded questions · scored out of 100 with feedback · free

      Start the 3 questions
    3. 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.

      Test yourself on this topic

      3 graded questions · scored out of 100 with feedback · free

      Start the 3 questions
    4. 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.

      Test yourself on this topic

      3 graded questions · scored out of 100 with feedback · free

      Start the 3 questions
    5. 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.

      Test yourself on this topic

      3 graded questions · scored out of 100 with feedback · free

      Start the 3 questions
    6. 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.

      Test yourself on this topic

      3 graded questions · scored out of 100 with feedback · free

      Start the 3 questions
    7. 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.

      Test yourself on this topic

      3 graded questions · scored out of 100 with feedback · free

      Start the 3 questions
  5. Phase 5 · Model graders: LLM-as-judge

    1. 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.

      Test yourself on this topic

      4 graded questions · scored out of 100 with feedback · free

      Start the 4 questions
    2. 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.

      Test yourself on this topic

      4 graded questions · scored out of 100 with feedback · free

      Start the 4 questions
    3. 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.

      Test yourself on this topic

      3 graded questions · scored out of 100 with feedback · free

      Start the 3 questions
    4. 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.

      Test yourself on this topic

      3 graded questions · scored out of 100 with feedback · free

      Start the 3 questions
    5. 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.

      Test yourself on this topic

      3 graded questions · scored out of 100 with feedback · free

      Start the 3 questions
    6. 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.

      Test yourself on this topic

      4 graded questions · scored out of 100 with feedback · free

      Start the 4 questions
    7. 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.

      Test yourself on this topic

      3 graded questions · scored out of 100 with feedback · free

      Start the 3 questions

    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
  6. Phase 6 · Human evaluation

    1. 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.

      Test yourself on this topic

      3 graded questions · scored out of 100 with feedback · free

      Start the 3 questions
    2. 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.

      Test yourself on this topic

      3 graded questions · scored out of 100 with feedback · free

      Start the 3 questions
    3. 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.

      Test yourself on this topic

      3 graded questions · scored out of 100 with feedback · free

      Start the 3 questions
    4. 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.

      Test yourself on this topic

      4 graded questions · scored out of 100 with feedback · free

      Start the 4 questions
    5. 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.

      Test yourself on this topic

      3 graded questions · scored out of 100 with feedback · free

      Start the 3 questions
  7. Phase 7 · Statistics for evals

    1. 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.

      Test yourself on this topic

      4 graded questions · scored out of 100 with feedback · free

      Start the 4 questions
    2. 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.

      Test yourself on this topic

      4 graded questions · scored out of 100 with feedback · free

      Start the 4 questions
    3. 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.

      Test yourself on this topic

      3 graded questions · scored out of 100 with feedback · free

      Start the 3 questions
    4. 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.

      Test yourself on this topic

      4 graded questions · scored out of 100 with feedback · free

      Start the 4 questions
    5. 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.

      Test yourself on this topic

      3 graded questions · scored out of 100 with feedback · free

      Start the 3 questions
    6. 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.

      Test yourself on this topic

      3 graded questions · scored out of 100 with feedback · free

      Start the 3 questions
    7. 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.

      Test yourself on this topic

      3 graded questions · scored out of 100 with feedback · free

      Start the 3 questions
  8. Phase 8 · Harnesses, CI and eval tooling

    1. 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.

      Test yourself on this topic

      4 graded questions · scored out of 100 with feedback · free

      Start the 4 questions
    2. 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.

      Test yourself on this topic

      3 graded questions · scored out of 100 with feedback · free

      Start the 3 questions
    3. 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.

      Test yourself on this topic

      4 graded questions · scored out of 100 with feedback · free

      Start the 4 questions
    4. 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.

      Test yourself on this topic

      4 graded questions · scored out of 100 with feedback · free

      Start the 4 questions
    5. 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.

      Test yourself on this topic

      3 graded questions · scored out of 100 with feedback · free

      Start the 3 questions
    6. 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

      Test yourself on this topic

      3 graded questions · scored out of 100 with feedback · free

      Start the 3 questions
    7. 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.

      Test yourself on this topic

      3 graded questions · scored out of 100 with feedback · free

      Start the 3 questions
    8. 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.

      Test yourself on this topic

      3 graded questions · scored out of 100 with feedback · free

      Start the 3 questions

    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
  9. Phase 9 · Evaluating RAG and generation tasks

    1. 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.

      Test yourself on this topic

      3 graded questions · scored out of 100 with feedback · free

      Start the 3 questions
    2. 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.

      Test yourself on this topic

      4 graded questions · scored out of 100 with feedback · free

      Start the 4 questions
    3. 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.

      Test yourself on this topic

      3 graded questions · scored out of 100 with feedback · free

      Start the 3 questions
    4. 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.

      Test yourself on this topic

      3 graded questions · scored out of 100 with feedback · free

      Start the 3 questions
    5. 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.

      Test yourself on this topic

      3 graded questions · scored out of 100 with feedback · free

      Start the 3 questions
    6. 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

      Test yourself on this topic

      3 graded questions · scored out of 100 with feedback · free

      Start the 3 questions
    7. 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.

      Test yourself on this topic

      3 graded questions · scored out of 100 with feedback · free

      Start the 3 questions
  10. Phase 10 · Agent and multi-turn evals

    1. 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.

      Test yourself on this topic

      4 graded questions · scored out of 100 with feedback · free

      Start the 4 questions
    2. 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.

      Test yourself on this topic

      3 graded questions · scored out of 100 with feedback · free

      Start the 3 questions
    3. 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.

      Test yourself on this topic

      3 graded questions · scored out of 100 with feedback · free

      Start the 3 questions
    4. 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.

      Test yourself on this topic

      4 graded questions · scored out of 100 with feedback · free

      Start the 4 questions
    5. 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.

      Test yourself on this topic

      3 graded questions · scored out of 100 with feedback · free

      Start the 3 questions
    6. 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.

      Test yourself on this topic

      3 graded questions · scored out of 100 with feedback · free

      Start the 3 questions
    7. 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.

      Test yourself on this topic

      3 graded questions · scored out of 100 with feedback · free

      Start the 3 questions
    8. 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.

      Test yourself on this topic

      3 graded questions · scored out of 100 with feedback · free

      Start the 3 questions
  11. Phase 11 · Benchmarks, fine-tunes and safety evals

    1. 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.

      Test yourself on this topic

      4 graded questions · scored out of 100 with feedback · free

      Start the 4 questions
    2. 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.

      Test yourself on this topic

      3 graded questions · scored out of 100 with feedback · free

      Start the 3 questions
    3. 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.

      Test yourself on this topic

      3 graded questions · scored out of 100 with feedback · free

      Start the 3 questions
    4. 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.

      Test yourself on this topic

      3 graded questions · scored out of 100 with feedback · free

      Start the 3 questions
    5. 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.

      Test yourself on this topic

      3 graded questions · scored out of 100 with feedback · free

      Start the 3 questions
    6. 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.

      Test yourself on this topic

      4 graded questions · scored out of 100 with feedback · free

      Start the 4 questions
    7. 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.

      Test yourself on this topic

      3 graded questions · scored out of 100 with feedback · free

      Start the 3 questions
    8. 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.

      Test yourself on this topic

      3 graded questions · scored out of 100 with feedback · free

      Start the 3 questions
    9. 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.

      Test yourself on this topic

      3 graded questions · scored out of 100 with feedback · free

      Start the 3 questions
  12. Phase 12 · Online evaluation, monitoring and reporting

    1. 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.

      Test yourself on this topic

      4 graded questions · scored out of 100 with feedback · free

      Start the 4 questions
    2. 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.

      Test yourself on this topic

      3 graded questions · scored out of 100 with feedback · free

      Start the 3 questions
    3. 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.

      Test yourself on this topic

      3 graded questions · scored out of 100 with feedback · free

      Start the 3 questions
    4. 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.

      Test yourself on this topic

      3 graded questions · scored out of 100 with feedback · free

      Start the 3 questions
    5. 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.

      Test yourself on this topic

      3 graded questions · scored out of 100 with feedback · free

      Start the 3 questions
    6. 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.

      Test yourself on this topic

      3 graded questions · scored out of 100 with feedback · free

      Start the 3 questions
    7. 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.

      Test yourself on this topic

      4 graded questions · scored out of 100 with feedback · free

      Start the 4 questions

Practise the AI Evals Engineer roadmap

284 questions, each graded on the server out of 100. Free · no card.

All career paths