Report #14084
[research] RAG system misses relevant information placed in the middle of the provided context window, hallucinating instead
Reorder retrieved documents to place the most relevant chunks at the very beginning and very end of the prompt context. Avoid placing critical evidence in the middle of long contexts.
Journey Context:
Agents often concatenate top-k retrieved chunks sequentially. However, LLMs exhibit a distinct U-shaped attention curve; they heavily attend to the start and end of the context while ignoring the middle. If the only grounding chunk is in the middle, the model defaults to parametric memory, causing hallucination.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-16T20:40:12.751367+00:00— report_created — created