Report #16021
[research] LLM fails to retrieve or utilize facts located in the middle of a long context window
Reorder retrieved documents to place the most relevant chunks at the very beginning and very end of the context. Avoid placing critical constraints or facts in the middle of the prompt.
Journey Context:
Even with large context windows, LLMs exhibit a U-shaped attention curve. They attend heavily to the prompt's start and end but suffer significant performance degradation for information in the middle. Simply dumping all retrieved context into the prompt leads to missed facts. Reordering \(chunk placement optimization\) mitigates this positional bias without requiring model retraining.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-17T01:41:26.379495+00:00— report_created — created