
Say what an eval is made of (a dataset, a grader and a threshold), the order to grade in, and how the course's loop from traces to monitoring fits together.
Install the companion repo, confirm it runs in replay mode without an API key, ask the agent its first question, and know the conventions the whole course follows.
Write and run a first eval in pytest (six cases, one code check, a pass-everything threshold), read its score with n and the standard error, fix the failure, and test the check itself with a passing and a failing example per rule.
Read an agent trace as a tree of spans (the agent run, model calls with token counts, tool calls and retrievals) and use it to find the step that went wrong.
Add the pinned OpenAI instrumentation and hand-written tool, retrieval and agent spans to the companion agent, print its span tree with make trace, and know which span names to trust.
Keep prompts, outputs and tool arguments out of production traces by default, choose between the three content-capture patterns, and switch capture on with the variable the pinned package actually reads.
Explain why error analysis comes before any metric, decide which failures to fix directly and which deserve an evaluator, and choose which traces to read.
Open-code agent traces in the companion repo, writing one observation per trace on its first failure, and know when you've read enough.
Group open-coding notes into a failure taxonomy, label every trace with one binary column per category, and rank the categories by failure rate with n and standard error.
Sort each failure category from error analysis to the cheapest grader that works, a code check for objective failures and an LLM judge for judgement calls, and say what each grader costs you.
Write code checks as small pytest-tested functions that return pass or fail with a reason, give each check pass, fail and edge-case examples, and run them over every labelled case so that a missing case or a crash fails instead of passing.
Write a judge prompt for one failure mode that returns a short critique and then a binary pass or fail verdict, with a clear rubric and a reference answer.
Recognise the position, verbosity, self-preference and leniency biases of LLM judges, and apply a cheap fix for each.
Validate a binary judge against human labels with a confusion matrix, TPR, TNR and Cohen's kappa, using train, dev and test splits and enough labels to trust the numbers.
Measure the tokens, time and cost of judge calls per suite run, and correct an observed pass rate for the judge's own errors using its TPR and TNR.
Split a RAG system into its retrieval and generation halves, name the seven failure points and say which half each belongs to, and explain why both halves need their own score.
Compute precision at k, recall at k, success at k and MRR by hand and in plain Python, run them as pytest tests over labelled policy questions, and say which definition of recall you mean.
Score faithfulness as supported claims over all claims, run it on one case in replay mode, and explain why a faithful answer can still be wrong and why the judge itself needs spot-checks.
Choose what to grade in a tool-calling agent, outcome first, and how strictly to check its path, with exact, in-order or any-order matching.
Write a pytest outcome check that runs the agent on a fresh mocked database and compares the final state with the task's goal state, the reply with its required facts, and one policy step.
Check an agent's tool calls in code, the right tool, required parameters, no made-up parameters and strict types, including cases where no tool should be called, then write an in-order check yourself.
Estimate pass^k from repeated trials, tell it apart from pass@k, and report it with n, its standard error and the cost per trial.
Explain why temperature 0, seeds, reruns and quarantine can't make an LLM eval gate reliable, and describe the replay and live tiers this section builds instead.
Compute the standard error of a pass rate, decide whether a drop is noise, and set a two-tier gate threshold your suite's size can support.
Write a GitHub Actions workflow whose replay tier is a required check that never skips, with a label-gated live tier that fork pull requests can't run, and run that required check locally to see it block a broken prompt change.
Schedule the full live suite as a nightly GitHub Actions run that won't silently stop, and estimate what one run costs in tokens and runner minutes before you turn it on.
Separate the decision of which production traces to keep from which kept traces to score, and size the scoring sample by what the judge costs.
Run your code checks on every production trace and your judge on a sample, attach each score to the span it judged, and read every online rate with its n and standard error.
Set alerts on online scores, cost and latency with sensible thresholds and windows, put hard per-run limits where an alert would be too slow, and feed flagged traces back into error analysis.
Describe how the main eval tools changed in 2026, sort them into three licence groups, and explain why the course pins every version and keeps its core in plain pytest.
Run the same eval cases and checks through DeepEval and promptfoo in replay mode, get the same passes and failures as pytest, and set each tool up safely for CI.
Take one new failure all the way round the eval loop, from trace to coded failure, check, CI gate and online monitoring, and know when to run the loop again.
This course contains the use of artificial intelligence.
Your agent's pull request is green. Every unit test passes. That afternoon, a customer asks about a refund, and the bot explains a refund policy your company doesn't have.
Unit tests check that your code runs. They don't check that an answer is right. This course teaches the loop that does: traces, error analysis, a labelled dataset, graders, a CI gate, and monitoring of live traffic, built in plain Python and pytest on a small support agent you run on your own machine.
How it works
Watch. Each lecture is short and animated: traces unfold span by span, failure categories take shape from your notes, thresholds are drawn against their error bars
Run it. You get the companion repository as a zip with its full git history, one starting branch per section. Everything runs in replay mode against recorded responses, so you need no API key and spend nothing on tokens.
Practise. Every section ends with a short quiz and a practice exercise in the repo, with a check command that tells you when you've got it right.
What you'll work on
Traces: instrument an agent with OpenTelemetry so every run leaves a record of its model calls, tool calls and retrievals, and keep user data out of them.
Error analysis: read traces, write notes, group them into a failure taxonomy and turn it into a pass or fail labelled dataset.
Code checks first: write pytest checks with passing and failing examples before reaching for an LLM judge.
LLM judges you can trust: write a binary judge, validate it against human labels with TPR, TNR and Cohen's kappa, and measure what each run costs.
RAG: score retrieval (precision, recall, MRR) and generation (faithfulness) separately.
Tool-calling agents: grade the final outcome first, check tool choice and arguments loosely, and measure reliability with pass^k
CI gates: block pull requests on an eval suite in GitHub Actions, with thresholds sized to the suite's standard error, resampling instead of temperature 0, and a path that works without a key for fork pull requests.
Monitoring: sample and score live traces, and alert on score, cost and latency regressions, with hard limits per run.
Frameworks as adapters: port the suite to DeepEval and promptfoo and see why every version is pinned.
Compact. About two hours of video in ten sections. The practice exercises are where you spend the extra time.
Sourced. Facts, numbers and tool behaviour come from published sources, named on screen. The support agent's responses in the repo are authored fixtures, labelled as such, so every failure you study is deliberate and the same as in the lectures.
As-of note. Reflects the rules, standards and tool versions as of 2026-10-30. General information, not legal or professional advice; no guarantee of completeness or accuracy. Check the official sources before acting.