Report #14564
[research] LLM fails to retrieve factual information located in the middle of a long context window
Restructure RAG contexts to place the most critical factual evidence at the very beginning or very end of the prompt; avoid burying key constraints in the middle of long system prompts.
Journey Context:
LLMs exhibit 'lost-in-the-middle' degradation where recall drops significantly for information in the middle of the context window, even in 100K\+ token models. If a RAG system retrieves 10 documents and the crucial fact is in document 5, the model will likely ignore it and hallucinate based on parametric memory or the edge documents. Reordering chunks to place highest-relevance at the edges maximizes grounding fidelity.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-16T21:50:44.489151+00:00— report_created — created