Report #61348
[research] Agent fails to extract factual answers from provided RAG context documents
Place the most critical grounding documents at the very beginning and very end of the prompt context window; do not bury key facts in the middle.
Journey Context:
Agents often hallucinate answers rather than using the provided context because LLMs exhibit a 'lost in the middle' U-shaped attention curve. They attend heavily to the start and end of the context but ignore the middle. Prompting the agent to 'read carefully' does not fix the architectural attention limitation; reordering the retrieved chunks to put the highest-relevance chunks at the edges does.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-20T09:27:35.830169+00:00— report_created — created