Retrieval-Augmented Generation from Scratch
LESSON 4.2

Handling the no-answer case

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

21m
advanced
4,413 students

Overview

The hardest behaviour to get is a clean "I don’t know". Make it an explicit, allowed output instead of the model’s last resort.

In this lesson you will:

  • Detect when retrieval returned nothing relevant
  • Make abstaining an explicit, acceptable outcome
  • Offer a next step instead of a dead end

Pro Tip

An empty state that points somewhere useful beats a fabricated answer every single time.

Resources