Report #83107
[research] Ignoring factual information located in the middle of a long context window and hallucinating instead
Place critical instructions and retrieved grounding documents at the very beginning or end of the prompt context. If doing RAG, re-rank chunks so the most relevant are at the edges.
Journey Context:
Even with large context windows, LLMs exhibit a U-shaped performance curve for fact retrieval. Information in the middle of the prompt is often ignored or overwritten by parametric memory, leading to hallucinations. Re-ranking retrieval results to place the highest-scoring chunks at the prompt boundaries maximizes the likelihood the model attends to them.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-21T22:05:18.833185+00:00— report_created — created