This is the multi-page printable view of this section. Click here to print.

Return to the regular view of this page.

Types of RAG

The RAG family — standard, advanced, self-correcting, graph, multimodal, agentic — and which is an architecture, a control loop, or a technique.

Goal

Work out which “RAG” someone means, and pick the right one for your data, your accuracy bar, and your budget. “RAG” has grown into a family, and its members are not all the same kind of thing. This section separates them.

The family

VariantWhat is differentRead more
Standard (naive) RAGFixed pipeline: retrieve top-k, augment, generateRAG
Advanced RAGSame shape, better retrieval: hybrid search, re-ranking, query transformsAdvanced RAG
Self-correcting RAGGrades the retrieval or the answer, and retriesThis section
Graph RAGRetrieves entities and relationships, not isolated chunksThis section
Multimodal RAGRetrieves images, tables, audioThis section
Agentic RAGAn agent decides when and what to retrieve, and iteratesAgentic RAG

Architecture, loop, or technique

This is the distinction that clears up the confusion. The family above mixes three different kinds of thing, and they are three axes, not three bins. Every RAG system has a shape and a flow, so one variant can sit on more than one axis.

AxisWhat it changesMembers
Architecturethe shape: what you retrieve fromStandard, Graph, Multimodal
Control loopthe flow: retrieve once, or grade and retryCRAG, Self-RAG
Techniqueone step inside any of the abovehybrid search, re-ranking, query transforms

Advanced RAG is not a fourth kind. It is the technique row, bundled: a standard architecture with better retrieval steps inside it. See Advanced RAG.

Agentic RAG moves on two axes at once. The agent chooses what to retrieve from, which is shape, and it decides when to stop, which is flow. That is exactly why published lists disagree about where to put it.

So “we use hybrid search” and “we use agentic RAG” are not the same kind of statement. The first names a step, the second names a whole system.

Lists of “six RAG architectures” usually flatten all three axes into one row of six, which is why no two of them agree. Hybrid search is the clearest case: combining dense and keyword retrieval is one step on the technique axis, so it lives inside an architecture. A list that puts it beside Graph RAG is comparing a step to a system.

In this section

The three variants nothing else in the vault owns get their own page:

PageIn one lineReach for it when…
Graph RAGIndex entities and relationships, retrieve a connected subgraphThe answer needs two or three linked facts
Multimodal RAGRetrieve images, tables, and audio, not only proseThe meaning lives in the media
Self-correcting RAGCRAG and Self-RAG grade the work and retryA wrong answer costs more than a slow one

Choosing one

Ratings are relative to standard RAG on the same corpus. They are qualitative on purpose: your numbers depend on your data.

VariantAccuracy gainAdded latencyAdded costComplexityWorth it when
StandardbaselinebaselinebaselinelowPlain text, direct lookups
Advancedmediumsmall, one re-rank passsmalllow to mediumRetrieval is the bottleneck, which it usually is
Self-correctinghigh on accuracy-critical querieshigh, an extra model call and sometimes a second retrievalhighmediumA wrong answer is expensive
Graphhigh on multi-hop and corpus-wide questionsmedium at query timehigh at ingest, a model pass over the whole corpushighThe value is in the relationships
Multimodalhigh when the answer is in the mediasmall at query timemedium at ingest, one call per media itemmediumSources are not prose
Agentichigh on multi-step questionshighest, several loops per questionhighesthighThe question genuinely needs several steps

There is no best architecture. Read the row that matches your failure, not the row with the highest accuracy.

Which one?

flowchart TD
    Start[Need RAG] --> Shape{What shape is your data}
    Shape -->|entities and relationships| Graph[Graph RAG]
    Shape -->|images, tables, audio| MM[Multimodal RAG]
    Shape -->|plain text| R{Is retrieval good enough}
    R -->|yes| Naive[Standard RAG]
    R -->|no| Adv[Advanced RAG - hybrid and rerank]
    Graph --> Cost{Is a wrong answer expensive}
    MM --> Cost
    Naive --> Cost
    Adv --> Cost
    Cost -->|yes| SC[Add a self-correcting loop]
    Cost -->|no| Multi{Needs multi-step reasoning}
    SC --> Multi
    Multi -->|yes| Agentic[Agentic RAG]
    Multi -->|no| Ship[Ship it]

Where to go next

Start simple. Move to advanced when retrieval is the bottleneck, add a loop when a wrong answer is expensive, and go agentic only when the question genuinely needs multi-step reasoning.

Sources

1 - Graph RAG

Retrieval over entities and the relationships between them, not isolated chunks.

Retrieve the connections, not just the passages.

What it is

Standard RAG stores documents as isolated chunks. Each chunk is retrieved on its own similarity to the question, and nothing in the index records that chunk 12 and chunk 87 are about the same company. Graph RAG indexes entities and the relationships between them, then retrieves a connected subgraph instead of a ranked list.

flowchart TD
    Q[Question] --> S[Standard RAG index]
    Q --> G[Graph RAG index]
    S --> SC[Chunk 12 - Chunk 87 - Chunk 3]
    SC --> SO[Top-k passages, unconnected]
    G --> N1[Acme Corp]
    N1 -->|supplies| N2[Beta Ltd]
    N2 -->|owned by| N3[Delta Group]
    N3 -->|in litigation with| N1
    N1 --> GO[A connected subgraph]

How it works

Three things happen at ingest time, not at query time:

  1. Extract. A model reads each chunk and pulls out entities and the relations between them.
  2. Resolve. Duplicates are merged, so “Acme”, “Acme Corp.” and “ACME” become one node.
  3. Store. The result is written as a graph of nodes and edges.

At query time the system finds entry-point nodes for the question, then walks the edges to collect connected facts. Microsoft’s GraphRAG adds one more step: it clusters the graph into communities and pre-writes a summary of each, so a broad question can be answered from summaries rather than from raw chunks.

The same structure is used elsewhere in this vault for a different job. See Multi-agent systems for the knowledge graph as shared memory between agents. Here it is a retrieval index. The extract and resolve steps are the same; that page adds the steps an agent team needs on top.

When to use it

  • Multi-hop questions, where the answer needs two or three linked facts.
  • “What connects X and Y” questions, which similarity search cannot express.
  • Corpus-wide questions, such as “what are the recurring themes across all incident reports”, where no single chunk holds the answer.

Do not use it for direct lookups. If the question is “what is our refund window”, a chunk already contains the answer and the graph earns nothing.

Example

Ask a supplier assistant: “Which of our suppliers are owned by a company we are in litigation with?”

Standard RAG retrieves the supplier list and the litigation memo as two separate chunks. The model has no way to join them, so it either guesses or says it cannot tell. Graph RAG walks supplies to owned by to in litigation with and returns the path, so the answer names the supplier and shows why.

The cost

Building the graph means running a model over the whole corpus at ingest, plus an entity resolution pass. Documents that change need re-ingesting. That is far more expensive than embedding chunks, and it is the reason to reach for Graph RAG only when the value really is in the relationships.

Sources

  • Edge et al., From Local to Global: A Graph RAG Approach to Query-Focused Summarization (2024) — arXiv:2404.16130

2 - Multimodal RAG

Retrieving images, tables, and audio, not only text.

When the answer is in a diagram, not a paragraph.

What it is

Retrieval where the source material is not prose: wiring diagrams, scanned invoices, chart images, slide decks, call recordings. A text-only index can find the page that mentions the thing, but not the thing itself.

This is about retrieval. For the model’s ability to read images and audio as input, see Multimodality.

Two designs

flowchart TD
    subgraph D1[Design 1 - one shared embedding space]
      A1[Images and text] --> ME[Multimodal embedding model]
      Q1[Text question] --> ME
      ME --> V1[(One vector store)]
    end
    subgraph D2[Design 2 - describe, then index the text]
      A2[Images, tables, audio] --> CAP[Model writes a text description]
      CAP --> TE[Text embedding model]
      TE --> V2[(Text vector store)]
      V2 --> ORIG[Pointer back to the original file]
    end

How it works

Design 1 embeds pictures and words into the same vector space, so a text question retrieves an image directly. This is the CLIP idea. It is elegant, and it needs a multimodal embedding model that handles your domain well.

Design 2 runs a vision model over each image or table at ingest, writes a text description, and indexes that description. Keep a pointer to the original file so the answer can show it.

Design 2 is usually the better starting point. The retrieval stack stays the text stack you already run, the descriptions are searchable and auditable, and a wrong description is something a human can read and fix. Parsing and OCR at ingest belong to the pipeline in Building a RAG system.

When to use it

When the meaning lives in the media. If your images are decorative and every fact is also in the prose, index the prose and stop.

Example

An equipment support assistant. The fix for error code E-14 is printed in a wiring diagram, and the manual text only says “see figure 4”.

A text-only index retrieves the sentence with E-14 in it, and the assistant answers “see figure 4”, which helps nobody. With design 2 the diagram was described at ingest, so the retrieved context includes “figure 4 shows relay K3 between the controller and the pump”. The answer now names the part, and attaches the original image.

The cost

Describing media is one model call per item at ingest, and descriptions can be wrong in ways that are hard to notice. Spot-check the descriptions for your highest-value documents rather than trusting the whole corpus.

Sources

  • Radford et al., Learning Transferable Visual Models From Natural Language Supervision (2021) — arXiv:2103.00020

3 - Self-Correcting RAG

CRAG and Self-RAG — loops that grade the retrieval or the answer, and retry when it is not good enough.

Check the retrieval before you trust it.

What it is

Standard RAG retrieves once and answers, whatever came back. A self-correcting design adds a grading step and a way to retry. Two named designs do this, and they grade different things:

  • CRAG grades the retrieved chunks, before generating.
  • Self-RAG grades its own draft answer, after generating, and can skip retrieval entirely when the question does not need it.
flowchart TD
    Q[Question] --> R[Retrieve]
    R --> G{CRAG grades the retrieved chunks}
    G -->|correct| GEN[Generate]
    G -->|ambiguous| REF[Keep the good parts and add a web search]
    G -->|incorrect| NEW[Discard and search elsewhere]
    REF --> GEN
    NEW --> GEN
    GEN --> S{Self-RAG asks is each claim supported}
    S -->|no| R
    S -->|yes| OUT[Answer with citations]

That diagram simplifies both papers in one way each. In CRAG the refine pass also runs on the correct branch, not only on ambiguous. And the Self-RAG retry edge is how agent frameworks commonly implement it; in the paper the model generates from several retrieved passages in parallel, and the reflection tokens pick the best-supported one.

How they differ

CRAGSelf-RAG
What it gradesthe retrieved chunksits own draft answer
Whenbefore generatingafter generating
Who decidesa small retrieval evaluator modelthe generator itself, using reflection tokens it was trained to emit
Fallback when the grade is badrefine the chunks, or search the web insteadretrieve again, or decline to answer
Always retrievesyesno, it first decides whether retrieval is needed
Extra cost per queryone evaluator callone or more extra generation passes

When to use it

When a wrong answer costs more than a slow answer. Regulated advice, medical or legal summaries, and anything a customer will act on without checking.

It is not free, and it is not a substitute for fixing retrieval. If the grader keeps returning “incorrect”, the problem is upstream. Fix chunking and hybrid search first, in Advanced RAG, and add the loop on top of retrieval that already works.

Example

An internal policy assistant is asked: “Can a contractor expense a business-class flight?”

Retrieval returns the travel policy, which is written for employees, and nothing about contractors. Standard RAG answers from the employee policy and is confidently wrong.

  • CRAG grades that context as ambiguous. It keeps the general travel section, drops the employee-only clauses, and runs a second search scoped to contractor agreements.
  • Self-RAG drafts the answer first, finds that the claim “contractors may book business class” has no supporting passage, and retrieves again before answering. If the second pass finds nothing, it says the policy does not cover this case.

Both reach the same place. CRAG gets there by doubting the input, Self-RAG by doubting itself.

The cost

Every graded query costs at least one extra model call, and the loop can run more than once. Latency roughly doubles in the bad case. A common compromise is to run the loop only on queries a confidence score already flagged, rather than on all traffic. See the confidence scoring and escalation stage in Building a RAG system.

Sources

  • Asai et al., Self-RAG: Learning to Retrieve, Generate, and Critique through Self-Reflection (2023) — arXiv:2310.11511
  • Yan et al., Corrective Retrieval Augmented Generation (2024) — arXiv:2401.15884