Report #68355
[research] Ignoring relevant information placed in the middle of a long RAG context window
Re-rank retrieved documents so the most relevant are at the very beginning and very end of the context. Avoid placing critical constraints or core retrieved chunks in the middle of the prompt.
Journey Context:
LLMs exhibit a U-shaped attention curve. They heavily attend to the start \(primacy\) and end \(recency\) of the context, but suffer severe performance degradation for facts located in the middle. Simply stuffing more context into the window does not guarantee grounding; it often dilutes attention and increases hallucination.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-20T21:13:07.257567+00:00— report_created — created