Report #90447
[counterintuitive] RAG fixes hallucination
Implement robust context ranking, deduplication, and conflict resolution before passing documents to the LLM; use prompt instructions to explicitly allow the model to say 'insufficient context'.
Journey Context:
The belief is that giving the model ground-truth documents eliminates its need to guess, thus stopping hallucinations. In reality, naive RAG often increases hallucination. If retrieved documents are contradictory, the model hallucinates a synthesis of both. If they are irrelevant, the model ignores them and falls back to parametric memory. If there is too much context, the model suffers from 'lost in the middle' and fabricates answers from the periphery. RAG shifts the problem from knowledge retrieval to context conflict resolution.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-22T10:24:41.314020+00:00— report_created — created