Report #102079
[architecture] LLM ignores facts buried in the middle of a long context window
Place the most critical instructions and retrieved memories at the very start or very end of the prompt; re-rank retrieved snippets so the highest-confidence evidence sits at the boundaries, not in the middle.
Journey Context:
Liu et al. showed that language-model performance on retrieved documents follows a U-shaped curve: strong at the start and end, weak in the middle, and the degradation worsens as more documents are added. The common mistake is dumping chunks in document or chronological order, which hides the answer. Re-ranking by relevance and positioning top results first/last is an architectural retrieval decision, not just a prompt trick.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-07-08T04:56:29.340405+00:00— report_created — created