Udemy
Turn what you know into an opportunity and reach millions around the world.
Learn More
Your cart is empty.
Keep shopping
RAG Evaluation in Production: Trustworthy Agents
New
Rating: 5.0 out of 5(1 rating)
2 students

RAG Evaluation in Production: Trustworthy Agents

Score a RAG system with Ragas and LLM judges, diagnose its retrieval, evaluate the agent · Ship track
Created byOC OC
Last updated 9/2026
English

What you'll learn

  • Explain why 'accuracy' is not one number and split retrieval failures from generation failures
  • Run Ragas metrics and read a per-sample table to diagnose a RAG pipeline
  • Design an LLM-as-a-judge rubric with G-Eval and recognise judge bias
  • Generate and validate synthetic evaluation data
  • Implement input/output guardrails and test them against false positives and holes
  • Diagnose retrieval with hit@k, MRR and per-failure-class analysis; evaluate agent trajectories
  • Audit a RAG application end to end and write the report

Course content

9 sections • 18 lectures • 2h 45m total length
  • Welcome and course overview2:53

Requirements

  • A computer with Python 3.10+ (a free Google Colab account is enough for most sessions)
  • Comfort reading Python code; you do not need to be an expert
  • An OpenAI API key (a LangSmith key for the observability session)
  • Experience building at least one RAG or LLM application

Description

This course contains the use of artificial intelligence.

AI-generated narration disclosure. The voice-over in this course is synthesized with a text-to-speech model from scripts written and reviewed by the instructor, and the on-screen material (notebooks, code, slides) is the instructor's own work. This is disclosed in line with Udemy's policy on AI-generated content.


Wiring an LLM into a product takes an afternoon. Knowing whether it is right takes a discipline, and this course teaches that discipline end to end.


The centre of the course is RAG evaluation: measuring retrieval and generation as separate failures, with Ragas, with LLM judges, and with test data you generate when you have none. Agent evaluation is the extension at the end — once you can score a single answer you can score a tool-calling trajectory. "In production" is the other half of the title: tracing every call so a complaint becomes a reproducible case, turning a thumbs-down into a regression test, and putting cost and latency budgets beside quality so you can decide whether a change is worth shipping.


We start with why evaluation is business-critical and the diagnostic questions every RAG owner should be able to answer. Then the tools: quantitative RAG evaluation with Ragas (context precision, faithfulness, answer relevancy) and how to read the per-sample table; LLM-as-a-judge with G-Eval, rubric design and judge bias; synthetic test data for the cold-start problem and how to validate it; input and output guardrails and how to know a guardrail is lying; observability and feedback loops with LangSmith. Two sessions go deeper than the usual cookbook: retrieval diagnostics (query-planning failures, temporal retrieval, multi-hop with and without planning, hit@k and MRR per failure class) and agent evaluation (tool-call correctness, trajectory scoring, judge rubrics, cost and latency budgets). The capstone audits a small customer-support RAG app with three planted defects: build the evaluation set, run the metric battery, find and fix each defect, and write the audit report.


Every session is a notebook shown on screen with the narration explaining what each metric can and cannot tell you, what not to automate, and how to tell when a score is not trustworthy.


Who this course is for:

  • Anyone who wants trustworthy AI features rather than impressive demos
  • Engineers who have shipped a RAG or agent and are asked 'how do you know it works?'
  • QA and data teams responsible for LLM quality
  • Tech leads setting up evaluation and monitoring for LLM features