hhhuang/CAG
Cache-Augmented Generation: A Simple, Efficient Alternative to RAG observed · 2026-08-28
Health v2 · maintenance only
32/100
- Activity 23
- Release rhythm 35
- Longevity 45
Flags: no_releases
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: n/a
- age_days: 630
- days_rel: n/a
- days_push: 464
- n_releases_24m: 0
Adoption not part of the score
1535 stars · 224 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
Cache-Augmented Generation (CAG) is a Python implementation of a retrieval-free alternative to RAG that preloads knowledge into an LLM's context and caches the KV-cache for direct inference. It accompanies an ACM Web Conference 2025 short paper and includes experiment scripts comparing CAG against traditional RAG.
Use cases
- avoid retrieval latency when answering questions over a small knowledge base
- replace RAG pipeline with preloaded context and KV-cache
- run question answering experiments on SQuAD and HotpotQA
- benchmark LLM performance vs context length
- reduce retrieval errors in LLM applications
When to choose
- your knowledge source fits within the LLM context window
- you want lower latency and simpler architecture than RAG
- you are researching retrieval-free generation approaches
When to avoid
- your knowledge base is too large for the context window
- you need frequently updated knowledge without re-caching
- you require a production-ready retrieval system
Facets
library · maturity active
rag llm-inference caching machine-learning large-language-models artificial-intelligence python cache-augmented-generation kv-cache retrieval-free llm research-paper retrieval-augmented-generation natural-language-processing
1 source
- readme: https://github.com/hhhuang/CAG · fetched 2026-08-28 · 0f2bfc6b3992
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| hhhuang/CAG | main | 32 |
For agents
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem