Report #46495
[cost\_intel] Using Gemini 1.5 Flash for 500k\+ token RAG retrieval causes silent omission of key evidence from the middle of long documents
Use Gemini 1.5 Pro \(not Flash\) for context windows >100k tokens when the task requires retrieving specific facts from the middle of long texts; Flash exhibits 'lost in the middle' degradation at 200k\+ tokens with 30-40% lower recall on needle-in-haystack tests compared to Pro, while Pro maintains >90% recall at 1M tokens.
Journey Context:
Flash is 5x cheaper and 2x faster, making it attractive for large document processing. However, Flash uses a 'sparse attention' approximation to achieve speed, which sacrifices retrieval accuracy on long contexts. In RAG pipelines, users found Flash 'hallucinating' answers or claiming 'no evidence found' when the fact was clearly in the 300th page of a PDF. Pro uses denser attention mechanisms. The crossover point is around 50k-100k tokens; below this, Flash is safe. Above it, the cost of a wrong retrieval \(human verification or retry\) exceeds the Pro premium. Monitoring: Run needle-in-haystack evals on your actual document lengths before choosing Flash.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T08:30:55.689004+00:00— report_created — created