Udemy
Turn what you know into an opportunity and reach millions around the world.
Learn More
Your cart is empty.
Keep shopping
AI Engineer: LLM Testing & Evals for Apps and Agents
New
1 students

AI Engineer: LLM Testing & Evals for Apps and Agents

Test and evaluate LLM apps, RAG and AI agents with LLM-as-a-judge, Langfuse, DeepEval, Ragas, promptfoo and CI gates
Created byDaniel Penner
Last updated 11/2026
English

What you'll learn

  • Trace an LLM agent with OpenTelemetry and send the same traces to Langfuse or Arize Phoenix without code changes
  • Run error analysis on real traces to find the failures that matter, then rank them by frequency and severity
  • Write fast code-based checks for format, tool calls and retrieval with pytest and Ragas
  • Build LLM-as-judge evaluators and prove they agree with humans using TPR, TNR and Cohen's kappa
  • Evaluate agent trajectories, multi-turn conversations and replayed runs with frozen tool outputs
  • Compare prompts and models with experiments, and tell a real improvement from noise on small test sets
  • Add eval quality gates to GitHub Actions and promptfoo so bad changes never merge
  • Monitor production with online evals, user feedback, drift alerts, guardrails and red-team probes

Course content

12 sections • 74 lectures • 2h 17m total length
  • Welcome from your instructor0:49

    A quick hello and what this course will help you do.

  • 1.1 Welcome: what you'll build and who this is for1:55

    Welcome to the course. If you've shipped an LLM feature or an agent, and someone asked you "how do you know it works?", and the honest answer was "I tried it and it seemed fine", this course is for you.

  • 1.2 Why "it seems fine" fails: vibe checks vs evals1:42

    Every LLM app starts with a vibe check. You type a few questions, read the answers, and they look good. In this lecture, we'll look at why that feels convincing and why it misses almost everything that matters.

  • 1.3 The gap: 89% of teams have observability, only 52% run evals1:41

    If evals are so useful, how many teams run them? There's a useful survey on exactly this, and the answer explains a lot about why agents in production keep surprising the people who built them.

  • 1.4 Evals vs tests: what's the same and what's different1:42

    If you write software tests, you already know half of this course. Evals borrow a lot from testing. But a few differences change how you write them, and how you read the results.

  • 1.5 The tool landscape in five minutes, and why we stay vendor-neutral1:50

    There are a lot of eval and observability tools, and new ones every month. Here's a map of the main kinds, which ones we use, and why the course doesn't depend on any single one.

  • 1.6 Setup: repo, Python environment, Ollama or an API key1:32

    Let's get the project running. You need Python 3.12 or newer, Git, and either an API key or a local model. Docker is useful from Section two, and I'll show it there.

  • Quiz 1: Why evals, and why now

Requirements

  • Comfortable reading and running Python
  • Python 3.12+, Git and Docker on your computer
  • An Anthropic or OpenAI API key, or a free local model with Ollama (most exercises run offline with no key)

Description

This course contains the use of artificial intelligence.

How this course was made: the lecture narration uses an AI-generated voice created from the instructor's own voice, and AI tools helped produce the slides, visuals and demo code. The instructor introduces the course on camera.

Your LLM app passed the vibe check. Then a customer found the bug.

This course teaches you how to test and evaluate LLM apps, RAG systems and AI agents the way production teams do. You work on one realistic project from start to finish: Acme's online-store support agent. You'll trace it, read its real conversations, find what actually breaks, and build the evals that catch those failures before customers do.

Everything is vendor-neutral and built on open standards. The same OpenTelemetry traces flow to Langfuse or Arize Phoenix, and the method works with any eval tool.

What you'll do

  • Tracing: instrument an agent with OpenTelemetry GenAI conventions, self-host Langfuse with Docker, and send the same traces to Arize Phoenix with no code changes.
  • Error analysis: sample real traces, write open codes, group them into a failure taxonomy and rank failures by frequency and severity. There's a no-code spreadsheet version for product managers.
  • Code-based evals: pytest assertions, tool-call checks and RAG retrieval metrics with Ragas.
  • LLM-as-a-judge: write pass/fail judges, label a human gold set, and prove agreement with TPR, TNR and Cohen's kappa before you trust a score.
  • Test datasets: golden sets from real failures, synthetic inputs by dimension, and versioned datasets you can compare over time.
  • Agent evaluation: trajectory evals, replay with frozen tool outputs, multi-turn conversation tests, and DeepEval agent metrics compared with your own.
  • Experiments: compare prompts and models, test whether a difference is real on small test sets, and trade off quality, cost and latency.
  • CI quality gates: pytest evals in GitHub Actions, promptfoo regression tests, thresholds as product decisions, and caching to keep the suite fast and cheap.
  • Production monitoring: online evals, user feedback, drift alerts, cost and latency dashboards, guardrails and red-team probes.

You also get

  • 66 short, focused video lectures
  • The full working code for the agent and every eval
  • 10 quizzes and 6 hands-on coding exercises with tests
  • A capstone eval report with a model answer you can use as a portfolio piece

Every number in the videos comes from code you can run yourself, including the bugs: a privacy leak hidden in traces, a hotfix that dropped a pass rate from 96% to 6% while customers kept giving thumbs up, and a cheaper model that looked fine until it was measured.

If you're a software or AI engineer shipping LLM features, a QA engineer moving into AI testing, or a tech lead deciding when an AI feature is ready, this course is for you.

Who this course is for:

  • Software and AI engineers who ship LLM features or agents and need to know they work
  • QA and test engineers moving into AI testing
  • Tech leads and product managers who decide when an AI feature is good enough to ship (there is a no-code path in Section 3)