Skip to content

< CollectionsStack

When RAG goes wrong.

The ways a working RAG system still gives a bad answer, and the fix for each.

5 sections · 7 problems

0 of 7 done

Start Next: 01 Fix a Broken RAG System

Fig. 1. One pipeline, five ways for it to answer badly. Each run fails at a different stage, and each failure has its own fix.

Section 01

The wrong chunks

0 of 1

Retrieval returns something, just not the right thing.

  1. 01Fix a Broken RAG Systemdebug · hard

Section 02

Not enough in one place

0 of 2

The answer needs two documents, or more than fits.

  1. 02Answer the Question That Needs Two Documentsimplement · hard
  2. 03Answer From a Repo That Does Not Fitimplement · hard

Section 03

Sources that disagree

0 of 1

Two documents say different things.

  1. 04Decide When Two Documents Disagreeimplement · medium

Section 04

Nothing to find

0 of 2

The answer is not there, and the model should say so.

  1. 05Make the Model Admit It Doesn't Knowimplement · hard
  2. 06Know When Not to Retrieveimplement · medium

Section 05

A hostile document

0 of 1

A retrieved page tries to give the orders.

  1. 07Ignore the Instructions Hidden in Your Documentsdebug · hard
All collections