Ilyas Khiat

July 15, 2026

Why RAG Breaks at Scale (and How to See It Coming)

ragembeddingsllm

Retrieval-augmented generation looks great in a demo with 200 documents. It looks very different at 200,000.

As the corpus grows, three things degrade quietly: embedding neighborhoods get noisier, top-k retrieval starts returning near-duplicates instead of diverse evidence, and your context budget gets squeezed by chunks that shouldn’t have made the cut.

That last one is easiest to feel in your wallet. Try adjusting the numbers below for a sense of how retrieval depth and model choice move your per-request cost:

$0.0465 per request

A few practical mitigations that actually move the needle:

None of this is exotic — it’s just easy to skip when the demo already works.