How RAG pipelines fail in production: retrieval, reader, and loop-side failure modes
himanshu_942 · reddit · 2026-11-23
A systematic breakdown of RAG production failures grouped by where they occur:
Retrieval-side
- Recall ceiling: if the answer chunk isn't in top-k, no model upgrade saves you. Measure recall@k first, use hybrid search with RRF fusion, fix chunking that splits tables.
- Stale index: source changed, embeddings didn't; silent version skew after switching embedding models. Re-index on change events, store source ID + content hash + model version per vector.
- Permission leak: enforce ACL/tenant filters inside the retrieval query, never after generation; test with "no access" cases.
Reader-side
- Lost in the middle: accuracy drops when evidence sits mid-context; retrieve wide, rerank, keep few (50→5), strongest evidence at edges.
- Distraction: embeddings measure topical similarity, not answerability. Rerank with cross-encoders, drop weak matches by threshold, add deliberate distractors to evals.
- Evidence conflict: keep dates/sources on chunks, codify conflict rules, require citations.
Loop-side (RAG inside agents)
- Compounding error: validate intermediate results, evaluate full traces, reject answers citing never-retrieved content.
- No stopping rule: define sufficiency, set hard budgets on iterations and tool calls, stop on repeated results, report gaps when budget exhausted.
- Prompt injection: treat retrieved text as data, least-privilege tools, human approval before write operations.
More from coding & agent
- Hands-on with rumored Gemini 4 Neon: one prompt builds a full 3D cathedral scene — teortaxesTex · 2026-11-23
- Google hints Gemini subscriptions will soon work in third-party agent harnesses starting Dec 2 — mark_k · 2026-11-23
- The Graph Engineering PDF, direct link — mdancho84 · 2026-11-23
- 11-page Graph Engineering PDF claims to improve Karpathy's loop 1000x — mdancho84 · 2026-11-23
- AI 3D face-off: Claude writes Three.js ship in 28 min vs 2 hrs driving Blender — lxfater · 2026-11-23
- AWS to run hands-on SFT and multi-turn RL agent sessions at re:Invent 2026 — ruchi798 · 2026-11-23