Retrieval and Generation Failures
In this article
- Say what retrieval hands to generation, and why the context the model received is the boundary between them.
- Tell a chunk that is relevant from a context that is sufficient.
- Read the trace of a wrong reply and decide, from the context it shows, whether retrieval or generation failed.
- Choose the next experiment for the half that failed, and say why one end-to-end score cannot choose it.
- Terms defined here: relevance, sufficiency.
Overview
A support assistant tells a customer they can still get a refund, and they cannot. One teammate rewrites the instructions, another tunes the search, and only one of them is working on the part that broke. A wrong answer from a RAG pipeline comes from one of two halves: the search did not bring the facts, or the model had the facts and used them badly. The record of the call tells you which.
The running example is Brightline, the home-internet provider of the earlier lessons; the company, its pages and every number below are invented. Its support assistant answers customers on the website, can look up an order, issue a refund of at most $50 and hand a conversation to a person on the support team, and it answers from about 400 help pages that it searches through a tool called search_help. Customer C-204 writes: "My router arrived 20 days ago. Can I still get a refund?" Order 8841, a BL-R7 Wi-Fi 7 router for $129.00, was delivered 20 days ago, and the help page help-refunds (updated 2025) says a refund can be requested up to 14 days after delivery. So the correct answer is no: 20 days is 6 days past the 14-day window, and the assistant offers to pass the customer to a person.
Sign in to keep reading
The rest of this article opens with an account. An account also keeps your progress and quiz results on every device, and lets you follow news for up to five topics.
Still to read in this article
- Two halves and the boundary between them
- Trace A: the rule never arrived
- A relevant chunk that is not enough
- Trace B: the rule arrived and was misused
- Four cases
- The next experiment for each half
- Why each half needs its own measurement
- Common mistakes
- Sources
- Check yourself, 13 questions