Report #44373
[agent\_craft] Agent stuffs entire large documents into the context window instead of using retrieval, leading to high latency and attention dilution
Use RAG for large knowledge bases. Only load the full text into context if the document is small and the task requires global reasoning over the entire text.
Journey Context:
With 1M\+ token context windows, there is a temptation to dump everything into context. However, long contexts increase inference time, cost, and suffer from 'needle in a haystack' retrieval failures. RAG pre-filters the context to only the most relevant chunks. The tradeoff is that RAG might miss context if the retrieval query is poor, but for large corpora, targeted RAG yields higher accuracy and lower cost than forcing the LLM to find the needle in a massive context haystack.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T04:57:04.928525+00:00— report_created — created