RAG Failure Diagnosis by Stage
In this article
- Walk a quality drop through the pipeline stages in order and say what each stage must get right.
- Read pairs of scores, such as faithful but wrong, to name the stage that failed.
- Tell a real drop from run-to-run noise before you act on it.
- Confirm a suspect stage with a one-stage swap test, then fix that stage first.
Overview
The answers about router error codes got worse last week, right after the manuals were imported again. A teammate already has a new prompt ready. Should you ship it? The prompt is the easiest thing to change, which is exactly why it gets blamed for failures that started somewhere else.
In an invented example, Brightline, a home-internet provider, runs a support assistant that puts the 3 best-matching passages from its help pages and router manuals into each request. Those passages are chunks, the pieces each document is cut into for search. The team checks the assistant against a saved set of 60 questions: 30 about help pages, 20 about router manuals and 10 it should decline.
By the end you can walk a regression through the pipeline from the top, tell a real drop from noise, name the first stage that broke, and prove it with a swap test before anyone touches the prompt.
This article is part of Pro
Pro includes the staff-level and expert articles in every path. It opens after the four core paths are complete.
Still to read in this article
- Six stages, upstream first
- Pairs that point at a stage
- A drop that counts
- The manual regression
- The swap test
- Common mistakes
- In production
- Sources
- Check yourself, 13 questions