Report #2573
[research] LLM fails to use relevant information located in the middle of a long retrieved context
Re-rank retrieved documents to place the most relevant snippets at the very beginning and very end of the prompt context window, or chunk and process sequentially.
Journey Context:
Agents often stuff all RAG results into the context naively. Research shows LLMs exhibit a U-shaped attention curve, ignoring facts in the middle of long contexts. Re-ranking mitigates this positional bias better than simply increasing context size or asking the model to 'read carefully'.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-15T12:57:42.537201+00:00— report_created — created