Variations on an Original Theme: A Taxonomy

The previous post described retrieval-augmented generation (RAG) as a design pattern with three elements: preparation of the domain knowledge ahead of time, selection of the relevant information for each query, and generation of the response by an LLM. This post classifies the named variants of RAG by what each does to those elements.

Why classify by operation

Two classifications are already in use. The survey by Gao et al. (2023) orders systems by sophistication: Naive, Advanced and Modular RAG. A later paper, Gao et al. (2024), orders them by flow pattern: "linear, conditional, branching, and looping". Both describe how a system is assembled.

I want a classification that answers a practical question. Given a variant, where does its cost fall, and what must be true of the problem for it to help? Stating which element the variant alters, and how, answers most of that.

The four operations

The reference instance is the plain one: documents are chunked and embedded, the query retrieves the nearest chunks, and one LLM call writes the answer. A variant applies one or more of four operations to it.

Changed. The element is present and its mechanism is replaced or enriched. This is the largest class. RAPTOR and Anthropic's Contextual Retrieval change preparation. HyDE and RAG-Fusion change selection. ColBERT, HippoRAG, GraphRAG and vector-less RAG change both, because a different representation requires a different way of selecting from it.

Emptied. The element has no step of its own. Cache-augmented generation has no selection step: the whole corpus is placed in the model's context. Agentic search over files, as in coding agents, has no preparation step: there is no index.

Relocated. Work moves across the boundary between ahead-of-time and per-query. LazyGraphRAG builds its graph without an LLM and defers summarization to query time. Cache-augmented generation moves work the other way, by precomputing the model's key-value cache for the corpus.

Looped. The pass is no longer single. A model decides at run time whether a step is skipped or repeated. Adaptive-RAG routes each query to no retrieval, one step or several. CRAG grades what was retrieved and falls back to web search. Agentic RAG plans and searches until it judges the evidence sufficient.

The map

 What each variant does to the three elements.

The map has nineteen rows: eighteen named variants and agentic search over files. Twelve alter preparation, sixteen alter selection, and three alter generation. The variation is concentrated in the first two elements, which the previous post described as intrinsically linked.

Some names cover more than one technique. Self-RAG, as published, is a trained model that emits reflection tokens. Implementations that grade retrieved passages by prompting carry the same name and are a different thing. The map classifies each variant as its source describes it.

The boundary

A classification that admitted everything would say nothing. Two things fall outside the pattern. Fine-tuning a model on domain data is one: the knowledge is in the weights and nothing is selected per request. The other is any path that answers from the model alone, such as the no-retrieval branch of Adaptive-RAG.

Agentic search over files is the strongest case for a real break, and it is the one most often cited as replacing RAG. Anthropic describes Claude Code as using "primitives like glob and grep" to "retrieve files just-in-time, effectively bypassing the issues of stale indexing". A reader who defines RAG as retrieval from a prepared index will count that as a departure. Under the definition used here it is a variant with preparation emptied and selection looped: information is still selected per query and passed to a model with instructions. My reading is that it works on code because a code base arrives already organized and named by its authors. That is an interpretation, not a measured result.

What the taxonomy is for

Each operation has a characteristic cost. These follow from the mechanisms; I have not measured them.

Operation Where the cost falls What it depends on
Changed preparation At ingestion, and again whenever the data changes The representation fits the questions asked
Changed selection Extra computation or LLM calls on every query The added step finds what plain retrieval misses
Emptied Nothing to build or maintain A corpus small enough for the context window, or already navigable
Relocated Moved between a one-time cost and a per-query cost The ratio of data changes to queries
Looped Variable, per query A dependable stopping rule, and an evaluation that covers every path

The sources say as much. The cache-augmented generation paper states that the approach "becomes impractical for significantly larger datasets". The LazyGraphRAG post puts its indexing cost at 0.1% of full GraphRAG's, which is a statement about what GraphRAG's changed preparation costs.

No row of the map is best for every problem. Each is suited to a class of problem, and the operation it applies indicates which.

The detailed paper gives the origin of each variant, the full map, and what each is suited and unsuited to. The next post examines two rows, GraphRAG and vector-less RAG, against the published evidence.

Next
Next

That which we call a RAG, by any other name …