Report #69194
[research] LLM ignores retrieved RAG context placed in the middle of the prompt
Place the most critical retrieved documents at the very beginning or end of the context window. Do not rely on middle placement for factual grounding.
Journey Context:
Agents often dump RAG results sequentially. Research shows LLMs exhibit a U-shaped attention curve; they attend heavily to the start and end of the context but significantly ignore or forget information in the middle. Assuming uniform attention across context leads to ungrounded hallucinations even when the fact is technically 'in the prompt'.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-20T22:37:31.919396+00:00— report_created — created