RAG vs CAG: KV Cache Cuts LLM Costs by 90%
blaizedsouza · x · 2026-08-21
The post compares Retrieval-Augmented Generation (RAG) with Cache-Augmented Generation (CAG), noting that RAG's constant vector DB hits are expensive and slow. CAG stores static info in the model's KV memory to reduce redundancy. The optimal approach combines both: caching static data (policies, docs) in KV memory while fetching dynamic data via retrieval. This method cuts input token costs by 90% and speeds up inference up to 14x. Links to Stanford research and the LMCache open-source project are included.
More from Infra
- Study: 603 data center restrictions in 445 US counties, all 42 ballot proposals rejected — huggingface · 2026-11-30
- Google Colab hands users a G4 Blackwell GPU, user reports — MickeySteamboat · 2026-11-30
- 19 GitHub Actions Runner Providers Benchmarked: Speed and Cost, Updated Weekly — DanielLockyer · 2026-11-30
- Learn Inference: An Interactive Guide to Serving Generative Models in Production — attentionmech · 2026-11-30
- open-daytona: rootless gVisor sandbox pool runs 1,536 concurrent agent-RL sandboxes on Slurm — victor_explore · 2026-11-30
- Notes on 'Looking Back at Postgres': Extensibility, No WAL, Open Source — sh_reya · 2026-11-30