Report #12469
[research] Agent fails to use relevant information located in the middle of a long retrieved context, hallucinating an answer instead
Reorder retrieved documents to place the most relevant chunks at the very beginning and very end of the prompt context. Limit chunk count to only the top-K most relevant to reduce noise.
Journey Context:
LLMs exhibit a 'lost in the middle' U-shaped performance curve for information retrieval. If a critical fact is buried in the middle of a 10k-token context, the LLM often ignores it and hallucinates an answer based on its parametric memory or the surrounding distractor documents. Simply adding more context actually degrades performance. Reordering is a zero-cost inference fix that aligns context presentation with known model attention biases.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-16T16:09:34.674104+00:00— report_created — created