Jargonautica
Retrieval and Knowledge

Cache-augmented Generation

Also called: CAG

An alternative to looking documents up at question time, where all the relevant material is loaded into the model once in advance and kept ready. Each question is then answered against that preloaded material without a separate search step. It suits small, stable collections of documents that fit within what the model can read at once, and it avoids the mistakes a search step can make.

Technical view

Popularised under that name by Chan and colleagues in a December 2024 paper. The knowledge base is placed in the context of a long-context model and its key-value (‘KV’) cache is precomputed and stored, so each query reuses that state rather than retrieving and re-encoding passages. Benefits are lower latency per query and no retrieval step to get wrong, although the model can still overlook relevant material in a long context. Limits are the context window, the cost of recomputing the cache when knowledge changes, and degraded attention over very long contexts, such as lost-in-the-middle effects. Retrieval Augmented Generation (‘RAG’) remains the better fit for large or fast-changing corpora.


Part of AI Terminology Index, section: Retrieval and Knowledge.

How it connects

Cache-augmented Generation links to 5 other terms. The faint lines are links between those terms. See it in the full graph.

Context WindowContext WindowLost in the MiddleLost in the MiddleRetrieval Augmented GenerationRetrieval Augmented…Context Length ExtensionContext Length Exte…CachingCachingCache-augmented Generation