Retrieval-Augmented Generation from Scratch
LESSON 3.3

Evaluating retrieval

Learn key techniques and workflows in Retrieval-Augmented Generation from Scratch.

12m
advanced
5,356 students

Overview

Before blaming the model for a bad answer, check whether the right passage was ever retrieved. Recall at k tells you which half of the system to fix.

In this lesson you will:

  • Build a query set with known correct passages
  • Measure recall and precision at k
  • Separate retrieval failures from generation failures

Pro Tip

Use caching and revalidation wisely to ensure your app stays fast and data remains fresh without unnecessary requests.

Resources