About this course
Without proper evaluation, every prompt or model change is a gamble. This course shows you how to build an evaluation strategy for LLM applications and agents, from golden datasets and LLM-as-judge to assessing complete agent trajectories. Using tools such as Langfuse, Braintrust, promptfoo and Inspect, you will build regression tests into CI and monitor quality in production. Robust evaluation also provides demonstrable evidence for compliance, including under the AI Act.
What you will learn
- 01Design an evaluation strategy with appropriate metrics for each use case.
- 02Build evaluation datasets and calibrate LLM-as-judge against human ratings.
- 03Evaluate agents on task success, tool use, cost and safety.
- 04Automate regression tests in CI and monitor quality in production.
- 05Conduct systematic error analysis on traces and turn failure patterns into targeted evals.
- 06Evaluate retrieval and generation in RAG systems separately with appropriate metrics.
- 07Account for non-determinism through repeated runs and statistically sound comparisons.
- 08Test applications for safety and robustness with adversarial test sets.
Programme
- Module 1
Why evaluate
Evaluation as the foundation of every LLM application: offline, online and human evaluation. See how evaluation-driven development speeds up a team's iteration cycle.
- Module 2
Error analysis
Reviewing traces systematically, labelling and categorising failure patterns, and prioritising what to measure. Hands-on: error analysis on real traces from a customer service assistant.
- Module 3
Datasets and metrics
Golden sets, synthetic test data, deterministic code-based checks, and metrics for accuracy, faithfulness and relevance. Learn how large a test set must be to detect differences reliably.
- Module 4
LLM-as-judge evaluation
Designing rubrics, binary judgements versus scores, and judge biases such as position and length preference. Hands-on: calibrate a judge against expert labels and measure agreement.
- Module 5
Evaluating RAG systems
Measuring retrieval and generation separately with recall@k, context precision and faithfulness. You will use tools such as Ragas and learn where automated RAG metrics can mislead.
- Module 6
Evaluating agents
Measuring trajectories, tool calls, sandboxes and end-to-end task success, including pass@k and repeated runs for non-deterministic behaviour. You will weigh quality against cost and latency.
- Module 7
Safety and robustness
Adversarial test sets for jailbreaks, prompt injection, PII leakage and unwanted behaviour. You will automate these tests with tools such as promptfoo or Inspect.
- Module 8
Evals in practice
Tracing and evaluation platforms such as Langfuse and Braintrust, regression tests as a quality gate in CI, online evals in production, and dashboards. The course concludes with governance reporting and improving one of your own use cases.
Audience and prerequisites
Who it is for
ML engineers, developers, data scientists and QA specialists responsible for AI quality.
Prerequisites
Experience with Python and with building LLM applications.