Intermediate
Testing & Evaluating AI Agents and RAG
Learn to measure whether your AI agents and RAG apps actually work. Define success criteria, build golden test sets, choose graders, use LLM judges safely, score retrieval and generation separately, evaluate agents across trials, grade traces, and wire it all into a CI loop. Builds on RAG for Agents and Evaluation and Observability.
01
From Vibes to Evals: Why Agents and RAG Fail Silently
Agents and RAG apps rarely crash when they are wrong. They sound confident instead. Learn why spot-checking misses silent failures, what an eval really is, and how this track turns guesswork into measurement.
›
02
Define Success Criteria First
You cannot measure quality you have not defined. Learn how to turn vague goals like "answers well" into specific, measurable, multi-dimensional success criteria for RAG apps and agents.
›
03
Build a Golden Test Set
A golden test set is the foundation of every eval. Learn where to find realistic cases, how to cover edge cases and negatives, and why 20 to 50 tasks drawn from real failures is a strong start.
›
04
Graders: Code, Model, and Human
A grader turns an output into a score. Learn the three grader families, their trade-offs, and the practical rule of thumb: deterministic first, model graders where needed, humans sparingly.
›
05
LLM-as-Judge Done Right
LLM judges scale evaluation but carry known biases. Learn the documented biases with real numbers, how to reduce them with order swapping and rubrics, and how to calibrate a judge against human labels before you trust it.
›
06
Tuning RAG Retrieval
Chunking, hybrid search, and reranking are the main levers for better retrieval. Learn what each does, what Anthropic reported for contextual retrieval, and how to change one lever at a time and measure it.
›
07
Scoring RAG: Retrieval vs Generation
When a RAG answer is wrong, was it the retriever or the generator? Learn the core RAG metrics, including context precision, context recall, faithfulness, and response relevancy, and how to read them to diagnose the real problem.
›
08
Evaluating Agents: Trials, Outcomes, and Reliability
Agents take many steps and vary from run to run. Learn to grade outcomes instead of paths, run multiple trials, tell capability evals from regression evals, and measure consistency with pass^k.
›
09
Grading Agent Traces
Traces record every decision an agent makes. Learn how trace grading finds where runs go wrong, how to build a failure taxonomy, and how to keep your logs and graders portable across tools.
›
10
The Eval Loop: From Production to CI
Evals are not a one-time test. Learn the loop that turns production failures into test cases, how regression gates in CI protect each change, and how to track cost and latency alongside quality.
›
11
Capstone: Ship a Minimal Eval Suite
Put everything together. Build a small, dependency-free eval suite in Python with a golden test file, code graders, multiple trials, a pass^k style score, and an exit code you can use as a CI gate.
›
Enjoying this track?
Get weekly AI learning picks — prompts, tools, and tutorials every Monday.