Research topic

RAG Architecture Diagram Examples from Real Papers

34 Figure 1 images, 2023 to 2026, all from CC BY 4.0 papers

34 figures

How RAG papers draw retrieval and generation

  1. 1

    Offline indexing apart from online answering

    Indexing the corpus happens once and answering happens per query, so figures split them into numbered stages, each with its own header color. Readers see which work is done ahead of time and which runs for every question.

  2. 2

    Retrieved documents as scored page icons

    Retrieved passages appear as small page icons, numbered or tagged with a relevance score. A document that the filter drops is crossed out in red, so the effect of the filtering step is visible without a table.

  3. 3

    Prior variants small, the new one wide

    Standard RAG and two earlier variants sit in small panels across the top, and the proposed method gets a wide panel below with its title in color. A legend row of query, document and answer symbols keeps every panel comparable.

  4. 4

    Attack in a red band above normal use

    Security papers draw the normal flow from user query to retriever, knowledge base and answer in a green band, and the attacker's poisoning step in a red band above it. The poisoned entry keeps the same icon in both bands, so readers can follow it into the answer.

  5. 5

    The prompt printed, passages tagged

    Some figures print the actual prompt for each setting, stacked from plain prompting to retrieval to the proposed method, with the inserted passages underlined and tagged by document number. Readers see exactly what the model receives in each case.

  6. 6

    Cost badges beside each design

    Speed papers put latency and accuracy on each row as small badges with a green check or a red cross. The tradeoff is the point of the paper, so it sits next to the design instead of waiting in a later table.

Questions about RAG architecture diagrams

How do I draw a RAG architecture diagram?

Put the query on the left and the answer on the right. Between them place the retriever, the document store as a cylinder or a stack of pages, and the language model. Show two or three retrieved passages as small labeled items rather than a bare arrow. If your method adds a step such as reranking, filtering or routing, give that step its own color so it stands out from the standard parts.

Should a RAG diagram show the indexing stage?

Show it if your method changes it. Papers that build a new index, graph or chunking scheme draw an offline stage first and the online query stage after it. Papers that only change how passages are used at answer time often start from a retrieved set and leave indexing out. Label the two stages so readers know which work happens once and which happens for every query.

What should Figure 1 of a RAG paper show?

Show a real query, what gets retrieved, and how your method changes the answer. In this collection, method papers often set a standard RAG flow beside their own, security papers add the attack or defense path, and efficiency papers report latency next to the design. One short worked example usually explains more than a fully general diagram.

Can I reuse these RAG diagrams?

Copyright stays with the authors. These papers are published under CC BY 4.0, which allows reuse, including commercial use, as long as you credit the authors, link to the paper and to the license, and note any changes you made. For your own paper it is usually better to borrow the layout idea and draw your own figure. If you plan to submit an AI drafted figure, check your venue's policy on AI-generated images first.

Where do these figures come from?

Each image is Figure 1 of a paper from ICLR 2025 to 2026, ICML 2024 to 2026, NeurIPS 2024 to 2025 or ACL 2023 to 2026, cropped and resized, and licensed CC BY 4.0: ACL papers through the ACL Anthology license statement, the others through each paper's OpenReview record. Papers join this topic when the title or abstract mentions retrieval-augmented generation or RAG, so a few benchmarks and analysis papers appear next to system designs.

Draft your RAG diagram from a description

Describe your system in plain words: the query, the corpus, how you retrieve, and what the model does with the passages. SciFigure's AI figure tools draft a first version. Check every label and arrow against your method.

Open the AI figure generator

Data and license

Every figure here is Figure 1 of a paper released under CC BY 4.0, cropped and resized, and each one credits its title, authors, venue and year with links to the paper and the license. Listing a figure does not mean its authors endorse SciFigure. How the licenses were checked.