Report #11961
[research] RAG systems fail to retrieve facts located in the middle of the provided context window
Place the most critical retrieved documents at the very beginning and very end of the prompt context. If using a single long document, restructure the prompt to repeat key instructions or split the document into overlapping chunks placed at the edges.
Journey Context:
Models exhibit a U-shaped attention curve for in-context information. They attend strongly to the prompt prefix and suffix but suffer from severe attention decay in the middle. Simply increasing context window size does not solve grounding if the relevant text is placed in the middle; it actually increases the surface area for this failure mode.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-16T14:45:17.327085+00:00— report_created — created