RAG failure modes: where retrieval-based answers break
A RAG answer can fail at retrieval or at generation. Knowing which one is half the fix.
5 min read
RAG stands for retrieval-augmented generation. The system first looks up documents, then asks a model to answer using them.
Two steps means two places to fail.
Retrieval failures
- Missed the right document: the answer was in your documents, but the search did not bring it back.
- Noisy results: the right text is in there, buried under irrelevant text.
- Stale source: the system found an old version of the policy.
- Conflicting sources: two documents disagree, and the model picks one without saying so.
Generation failures
- Ignored the context: the right text was retrieved, but the model answered from memory or said it could not find it.
- Went beyond the context: the answer adds claims the documents do not support.
- Partial answer: only part of the question was answered.
- Followed a hidden instruction: a document contained text like "ignore your instructions", and the model obeyed.
These are common patterns, not a complete list.
Measure each side separately
- Retrieval: are the retrieved passages relevant (precision), and did you get everything you needed (recall)?
- Generation: is the answer supported by the retrieved text (faithfulness), and does it answer the question (relevance)?
If you only score the final answer, you cannot tell which side broke.
Try it
Case 1 of 5
Question
What is the refund window for sale items?
Retrieved passages
- Shipping policy: standard delivery takes 3 to 5 working days.
- Returns (old version): sale items can be returned within 30 days.
Answer
30 days.
Sample cases for an imaginary store.
For each case, decide whether retrieval or generation failed.
Where EvalRoom is
I'm adding RAG failure-mode checks to EvalRoom. They are in progress, so for now this lesson is about the ideas.
Takeaways
- A RAG answer can fail before the model ever writes a word.
- Retrieval and generation need separate checks.
- Start by sorting every failure into one of the two.