CourseAI Engineering: The Complete Course · Module 8: Retrieval-Augmented Generation (RAG) · part 64 of 105
Part 64 · Module 8: Retrieval-Augmented Generation (RAG)

Lesson 5: Measuring whether the answers are right

22 min read·13 Oct 2026
Module 8 · Lesson 5 · About 40 minutes · Needs: Module 5 lab (hit@1 and hit@3), Lessons 2 to 4 of this module (embeddings, retrieval, grounded answers)

The situation

The assistant now answers from the help centre with citations (Lesson 4). Priya asks: "Is it right, and will you know when it stops being right?" Dev wants to swap the retriever next week and asks how he will know if the swap made things worse.

Reading answers by eye does not scale, and it does not say where a wrong answer went wrong. This lesson builds a small test set, scores each stage separately and labels every failure with its stage. The running example is a shared ticket: "I returned my speaker last week. When do I get my money?"

The rest of this course is yours to keep

This course is bought on its own, once, and stays readable afterwards, including the parts added to it later.