What are the top failure modes of production RAG systems?
Type it the way you would explain it to an interviewer. A few sentences is enough; you can't break anything.
Model answer: the part to lead with
Ranked roughly by how often they bite in practice:
- Parsing corruption - tables flattened, columns interleaved, OCR noise. Poisons everything downstream and hides for months because nobody reads parsed output. Antidote: sample-and-eyeball audits, parsing-quality checks at ingest.
- Retrieval misses on exact-match queries - IDs, error codes, names, jargon. Pure-dense systems whiff; fix is hybrid search. Painfully common in v1 systems built from vector-only tutorials.
- Context fragmentation from chunking - the answer straddles chunk boundaries, or chunks lack the context to be interpretable ("the company" - which?). Fixes: structure-aware chunking, overlap, parent-document retrieval, contextual enrichment.
- Staleness - outdated docs retrieved alongside (or instead of) current ones; contradictory duplicates in the prompt confuse the model. Fixes: incremental indexing with version-scoped replacement, recency features, dedupe at assembly.
- Unfaithful generation - right chunks retrieved, model answers from parametric memory anyway, or blends sources into a plausible-but-wrong synthesis. Fixes: grounding instructions, citation enforcement with verification, faithfulness evals; smaller k so evidence isn't buried.
- Confident answers on out-of-corpus questions - the system never says "I don't know"; retrieval always returns something (top-k is unconditional), and the model gamely answers from weak evidence. Fixes: relevance-score thresholds (reranker scores work), explicit refusal instructions, refusal cases in evals.
- Query-intent mismatch - conversational follow-ups retrieved literally, multi-hop questions searched single-shot, queries routed to the wrong corpus. Fixes: history-aware rewriting, decomposition/agentic search, router evals.
- Security failures - ACLs enforced by prompt instead of filter; injection via retrieved documents (a poisoned wiki page containing "ignore previous instructions..." enters the context as trusted text). Fixes: retrieval-time authorization, treating retrieved text as untrusted data, injection red-teaming.
- Silent regressions - an embedding-model upgrade without full re-embedding (mixed vector spaces), index degradation after heavy deletes, cache serving pre-fix answers. Fix: recall canaries against exact search, versioned everything, eval gates on every change.
Full worked answer
Ranked roughly by how often they bite in practice:
- Parsing corruption - tables flattened, columns interleaved, OCR noise. Poisons everything downstream and hides for months because nobody reads parsed output. Antidote: sample-and-eyeball audits, parsing-quality checks at ingest.
- Retrieval misses on exact-match queries - IDs, error codes, names, jargon. Pure-dense systems whiff; fix is hybrid search. Painfully common in v1 systems built from vector-only tutorials.
- Context fragmentation from chunking - the answer straddles chunk boundaries, or chunks lack the context to be interpretable ("the company" - which?). Fixes: structure-aware chunking, overlap, parent-document retrieval, contextual enrichment.
- Staleness - outdated docs retrieved alongside (or instead of) current ones; contradictory duplicates in the prompt confuse the model. Fixes: incremental indexing with version-scoped replacement, recency features, dedupe at assembly.
- Unfaithful generation - right chunks retrieved, model answers from parametric memory anyway, or blends sources into a plausible-but-wrong synthesis. Fixes: grounding instructions, citation enforcement with verification, faithfulness evals; smaller k so evidence isn't buried.
- Confident answers on out-of-corpus questions - the system never says "I don't know"; retrieval always returns something (top-k is unconditional), and the model gamely answers from weak evidence. Fixes: relevance-score thresholds (reranker scores work), explicit refusal instructions, refusal cases in evals.
- Query-intent mismatch - conversational follow-ups retrieved literally, multi-hop questions searched single-shot, queries routed to the wrong corpus. Fixes: history-aware rewriting, decomposition/agentic search, router evals.
- Security failures - ACLs enforced by prompt instead of filter; injection via retrieved documents (a poisoned wiki page containing "ignore previous instructions..." enters the context as trusted text). Fixes: retrieval-time authorization, treating retrieved text as untrusted data, injection red-teaming.
- Silent regressions - an embedding-model upgrade without full re-embedding (mixed vector spaces), index degradation after heavy deletes, cache serving pre-fix answers. Fix: recall canaries against exact search, versioned everything, eval gates on every change.
The meta-answer interviewers want: failures cluster in the unglamorous stages (parsing, chunking, freshness, evaluation) rather than the model, and each failure mode above maps to a specific detection metric - if you can't detect it, you have it.
What a good answer covers
- Parsing corruption - tables flattened, columns interleaved, OCR noise
- Retrieval misses on exact-match queries - IDs, error codes, names, jargon
- Context fragmentation from chunking - the answer straddles chunk boundaries, or chunks lack the context…
- Staleness - outdated docs retrieved alongside (or instead of) current ones; contradictory duplicates in…
- Unfaithful generation - right chunks retrieved, model answers from parametric memory anyway, or blends…
Key terms: Parsing corruption · Retrieval misses on exact-match queries · Context fragmentation from chunking · Staleness · Unfaithful generation · Confident answers on out-of-corpus questions · Query-intent mismatch · Security failures · Silent regressions
In the glossary: Hybrid search · Chunking · Parent-document retrieval · Grounding · Faithfulness · Router
Interviewer follow-ups to expect
Which three of these would you build detection for first on a new system?
Tell me about a RAG failure you've personally debugged. How does prompt injection via retrieved documents work, and what actually mitigates it?
Worked answer from AI-Engineer-Interview-Questions by Om (MIT), reformatted for LLM Prep · answer text last updated 6 November 2026 · scoring and review schedule by LLM Prep