Variations on RAG: Eighteen Named Variants Mapped to the Three Elements of the Pattern
This paper accompanies the post Variations on an Original Theme: A Taxonomy. Entries marked [S] rest on the source cited for that variant. Entries marked [A] rest on my analysis of vector-less RAG. Unmarked entries in the "suited to" and "limits" columns are my assessments from the mechanism and have not been measured.
The pattern
Retrieval-augmented generation (RAG) is treated here as a design pattern with three elements:
- Preparation. Domain knowledge is ingested ahead of time and put into a representation suited to the questions the solution must answer.
- Selection. For each interaction, the information needed to resolve the request is selected from that representation.
- Generation. An LLM formulates the response from the user's input, instructions, and the selected information with its metadata.
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. Gao et al. (2023) call this "Naive RAG" (indexing, retrieval, generation) and classify later systems as Advanced or Modular. Gao et al. (2024) classify by flow pattern: "linear, conditional, branching, and looping". The classification below is by element and operation, which is a different cut of the same field.
The four operations
| Operation | Definition |
|---|---|
| Changed | The element is present and its mechanism is replaced or enriched. |
| Emptied | The element has no step of its own. |
| Relocated | Work moves across the boundary between ahead-of-time and per-query. |
| Looped | The pass is no longer single: a model decides at run time whether a step is skipped or repeated. |
Outside the pattern: fine-tuning a model on domain data (the knowledge is in the weights and nothing is selected per request), and any path that answers from the model alone, such as the no-retrieval branch of Adaptive-RAG.
The map
Of the 19 rows, 12 alter preparation, 16 alter selection and 3 alter generation.
| Variant | 1. Preparation | 2. Selection | 3. Generation |
|---|---|---|---|
| RAPTOR | changed: tree of cluster summaries | unchanged | unchanged |
| Contextual Retrieval | changed: LLM-written context added to each chunk | unchanged | unchanged |
| HyDE | unchanged | changed: search by a hypothetical answer | unchanged |
| RAG-Fusion | unchanged | changed: several query rewrites, rank fusion | unchanged |
| ColBERT | changed: one vector per token | changed: MaxSim late interaction | unchanged |
| ColPali (multimodal) | changed: page images as patch vectors | changed: late interaction | unchanged |
| HippoRAG | changed: schemaless knowledge graph | changed: Personalized PageRank | unchanged |
| LightRAG | changed: entity and relation graph | changed: local and global keywords | unchanged |
| GraphRAG | changed: entity graph with community summaries | changed: search over the summaries | changed: map-reduce synthesis |
| KAG | changed: graph and text, mutually indexed | changed: logical-form-guided reasoning | unchanged |
| Vector-less RAG (PageIndex) | changed: section tree with summaries | changed: an LLM reads the tree | unchanged |
| LazyGraphRAG | changed: noun-phrase graph, no LLM | relocated: summarization done per query | unchanged |
| CAG | relocated: model's KV cache precomputed | emptied: no retrieval step | unchanged |
| Agentic search over files | emptied: no index | looped: grep, glob and read until done | unchanged |
| Adaptive-RAG | unchanged | looped: a classifier picks none, one or many steps | unchanged |
| Agentic RAG | unchanged | looped: plan, search with tools, repeat | unchanged |
| CRAG | unchanged | looped: grade results, fall back to web search | unchanged |
| Self-RAG | unchanged | looped: retrieve on demand while generating | changed: a model trained to critique its output |
| Speculative RAG | unchanged | unchanged | changed: parallel drafts, one verifier |
Agentic search over files is not usually named as a RAG variant. It is included because it is the approach most often cited as replacing RAG.
Origin, fit and limits
| Variant | Origin | Suited to | Limits, or unsuited to |
|---|---|---|---|
| RAPTOR | Sarthi et al., Stanford, 2024 | Questions at mixed levels of abstraction over long documents. | Corpora that change often: the clusters and their summaries are rebuilt. |
| Contextual Retrieval | Anthropic, 2024 | Chunks that lose their meaning when read out of context. | One LLM call per chunk at ingestion. The source notes that a knowledge base under 200,000 tokens can go in the prompt whole [S]. |
| HyDE | Gao et al., Carnegie Mellon and Waterloo, 2022 | Short or vague queries; domains with no relevance labels. | Adds an LLM call per query. The hypothetical document "may contain false details" [S]. |
| RAG-Fusion | Raudaschl, 2023 | Ambiguous queries that admit several phrasings. | Precise lookups, where the rewrites add cost without adding recall. |
| ColBERT | Khattab and Zaharia, Stanford, 2020 | Matching that depends on individual terms. | A multi-vector index is much larger than one vector per chunk. |
| ColPali (multimodal) | Faysse et al., Illuin, CentraleSupélec and ETH Zürich, 2024 | Documents whose meaning is in layout, tables and figures. | Text-only corpora, where it adds index size for no gain. |
| HippoRAG | Jiménez Gutiérrez et al., Ohio State, 2024 | Multi-hop questions that associate facts across passages. | Simple factual lookups. Its successor was motivated by graph methods trailing plain RAG there [S]. |
| LightRAG | Guo et al., BUPT and Hong Kong, 2024 | A graph index that must absorb new documents incrementally (the authors' claim). | Single-fact lookups, where the graph is overhead. |
| GraphRAG | Edge et al., Microsoft Research, 2024 | Questions about a whole corpus; multi-hop questions [S]. | Single-hop lookups [S]. LLM indexing cost: the LazyGraphRAG post puts lazy indexing at 0.1% of it [S]. |
| KAG | Liang et al., Ant Group and Zhejiang, 2024 | Professional domains with expert schemas and logical or numerical questions. | Corpora too small or informal to repay knowledge-graph construction. |
| Vector-less RAG (PageIndex) | VectifyAI, 2025 | One long, well-structured document that is already identified [A]. | Choosing among many documents; content the headings do not signpost; at least two serial LLM calls per query [A]. |
| LazyGraphRAG | Edge, Trinh and Larson, Microsoft Research, 2024 | Corpus-wide questions where GraphRAG's indexing cost is not justified. | The evidence is a vendor blog post; there is no paper. |
| CAG | Chan et al., National Chengchi and Academia Sinica, 2024 | A corpus that fits in the context window and is stable [S]. | Larger or frequently changing corpora [S]; per-user access rules. |
| Agentic search over files | Anthropic (Claude Code), 2025 | Corpora already organized and named by their authors, such as code. No index to go stale [S]. | Latency and tokens on every query [S]; large corpora with no navigable structure. |
| Adaptive-RAG | Jeong et al., KAIST, 2024 | Workloads that mix simple and complex queries. | Requires a trained classifier; a misrouted query gets the wrong path. |
| Agentic RAG | no single origin; survey by Singh et al., 2025 | Multi-step questions across several kinds of source. | Cost and latency vary per query, which complicates evaluation. |
| CRAG | Yan et al., USTC, UCLA and Google DeepMind, 2024 | Corpora with gaps, where retrieval often returns nothing useful. | Closed domains where a web fallback is not permitted. |
| Self-RAG | Asai et al., Washington, Allen Institute and IBM, 2023 | Long-form answers where each claim should be checked against evidence. | It is a trained model, not a prompting technique [S]; unavailable with a hosted model that cannot be trained. |
| Speculative RAG | Wang et al., Google and UC San Diego, 2024 | Many retrieved documents that support differing answers. | Requires an instruction-tuned drafter model [S]. |
Notes on individual variants
- RAPTOR. The LLM does not do the clustering. Chunks are embedded and clustered with Gaussian mixture models; the LLM summarizes each cluster. Retrieval can traverse the tree or search all levels at once.
- Contextual Retrieval. The generated context, "usually 50-100 tokens", is prepended to the chunk before both the embedding and the BM25 index are built.
- RAG-Fusion. Raudaschl's post and repository (2023) are the origin. The arXiv paper by Rackauckas (2402.03367, 2024) is an evaluation of the method. Reciprocal rank fusion is from Cormack, Clarke and Büttcher (SIGIR 2009).
- ColBERT. The index itself differs (one vector per document token), so the variant changes preparation as well as selection.
- HippoRAG. HippoRAG 2 is published as "From RAG to Memory: Non-Parametric Continual Learning for Large Language Models" (arXiv 2502.14802, ICML 2025). It adds passage nodes to the graph and an LLM filter on triples.
- LightRAG. The paper's terms are local keywords, matched to entities, and global keywords, matched to relations.
- GraphRAG. Communities are found with Leiden community detection, applied hierarchically. Global queries are answered by "map-reduce processing of community summaries".
- KAG. The representation supports both schema-free extraction and schema-constrained construction. It is built on OpenSPG.
- Vector-less RAG. "Vectorless" and "reasoning-based RAG" are VectifyAI's own terms. There is no paper. In its production form selection is an agent loop, so it is also looped.
- LazyGraphRAG. Indexing uses noun-phrase extraction and graph statistics with no LLM. The post states that indexing costs "are identical to vector RAG and 0.1% of the costs of full GraphRAG".
- CAG. The paper states its own limit: the approach "becomes impractical for significantly larger datasets". Cache-augmented generation is therefore a variant with a stated problem class. Applying any variant outside its problem class is the anti-pattern.
- Agentic search over files. Anthropic describes Claude Code as using "primitives like glob and grep" to "retrieve files just-in-time, effectively bypassing the issues of stale indexing". Boris Cherny has said that early versions indexed the code base and that the team "landed on just agentic search", on evidence he described as "mostly vibes" (Latent Space, May 2025).
- CRAG. The evaluator is a fine-tuned T5-large that returns a confidence score. Thresholds on the score trigger one of three actions: Correct, Incorrect or Ambiguous.
- Self-RAG. The paper trains a language model to emit reflection tokens. Implementations that grade retrieved passages by prompting are a different technique under the same name.
- Speculative RAG. The drafter is a smaller, instruction-tuned specialist. The verifier is a larger generalist that scores each draft in a single pass.
Sources
Framing
- Lewis et al. (2020). Retrieval-Augmented Generation for Knowledge-Intensive NLP Tasks. NeurIPS 2020. https://arxiv.org/abs/2005.11401
- Gao et al. (2023). Retrieval-Augmented Generation for Large Language Models: A Survey. https://arxiv.org/abs/2312.10997
- Gao et al. (2024). Modular RAG: Transforming RAG Systems into LEGO-like Reconfigurable Frameworks. https://arxiv.org/abs/2407.21059
Variants
- RAPTOR: Sarthi et al., Stanford, 2024. https://arxiv.org/abs/2401.18059
- Contextual Retrieval: Anthropic, 2024. https://www.anthropic.com/news/contextual-retrieval
- HyDE: Gao et al., Carnegie Mellon and Waterloo, 2022. https://arxiv.org/abs/2212.10496
- RAG-Fusion: Raudaschl, 2023. https://adrianraudaschl.com/blog/forget-rag-the-future-is-rag-fusion/
- ColBERT: Khattab and Zaharia, Stanford, 2020. https://arxiv.org/abs/2004.12832
- ColPali (multimodal): Faysse et al., Illuin, CentraleSupélec and ETH Zürich, 2024. https://arxiv.org/abs/2407.01449
- HippoRAG: Jiménez Gutiérrez et al., Ohio State, 2024. https://arxiv.org/abs/2405.14831
- LightRAG: Guo et al., BUPT and Hong Kong, 2024. https://arxiv.org/abs/2410.05779
- GraphRAG: Edge et al., Microsoft Research, 2024. https://arxiv.org/abs/2404.16130
- KAG: Liang et al., Ant Group and Zhejiang, 2024. https://arxiv.org/abs/2409.13731
- Vector-less RAG (PageIndex): VectifyAI, 2025. https://github.com/VectifyAI/PageIndex
- LazyGraphRAG: Edge, Trinh and Larson, Microsoft Research, 2024. https://www.microsoft.com/en-us/research/blog/lazygraphrag-setting-a-new-standard-for-quality-and-cost/
- CAG: Chan et al., National Chengchi and Academia Sinica, 2024. https://arxiv.org/abs/2412.15605
- Agentic search over files: Anthropic (Claude Code), 2025. https://www.anthropic.com/engineering/effective-context-engineering-for-ai-agents
- Adaptive-RAG: Jeong et al., KAIST, 2024. https://arxiv.org/abs/2403.14403
- Agentic RAG: no single origin; survey by Singh et al., 2025. https://arxiv.org/abs/2501.09136
- CRAG: Yan et al., USTC, UCLA and Google DeepMind, 2024. https://arxiv.org/abs/2401.15884
- Self-RAG: Asai et al., Washington, Allen Institute and IBM, 2023. https://arxiv.org/abs/2310.11511
- Speculative RAG: Wang et al., Google and UC San Diego, 2024. https://arxiv.org/abs/2407.08223
- HippoRAG 2: Jiménez Gutiérrez et al. (2025). https://arxiv.org/abs/2502.14802
- RAG-Fusion evaluation: Rackauckas (2024). https://arxiv.org/abs/2402.03367
- Reciprocal rank fusion: Cormack, Clarke and Büttcher (2009). https://doi.org/10.1145/1571941.1572114
- Agentic search, spoken source: Latent Space, "Claude Code: Anthropic's Agent in Your Terminal", 7 May 2025. https://www.latent.space/p/claude-code
Comparisons cited
- Han et al. (2025). RAG vs. GraphRAG: A Systematic Evaluation and Key Insights. https://arxiv.org/abs/2502.11371
- Layman (2026). Vectorless RAG (PageIndex): The Claim, the Mechanism, and a Comparison with Tuned Vector RAG. https://files.cognosa.net/vectorless_rag_analysis_261106.html