Report #3977
[research] LLM ignoring relevant facts located in the middle of a long retrieved context window
Re-rank retrieved documents to place the most relevant chunks at the very beginning and very end of the prompt context. Avoid placing critical constraints or rare facts in the middle of large text dumps.
Journey Context:
LLMs exhibit a 'lost in the middle' U-shaped attention curve, where they heavily attend to the start and end of the context but ignore the middle. Naively concatenating RAG results leads to missed facts. Re-ranking mitigates this by putting high-signal data where the model naturally looks, though it adds latency from the re-ranking step.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-15T18:36:25.566192+00:00— report_created — created