Skip to content
Cards for document sources, chunking, the embedding model, vector store, re-ranker, LLM and guardrails laid over a photo of an open library.

RAG Pipeline Architecture

Presentation template for Google Slides and PowerPoint

Make a copy in Google Slides
Price
Free
Slides
5
Difficulty
Intermediate
Updated
November 8, 2026

Every slide (5)

Overview

Documents from wikis, PDFs and tickets are chunked and embedded into a vector store in an asynchronous lane. When a user asks a question, the API authenticates the request and the retriever embeds the query and searches the store for the nearest chunks. The re-ranker reorders about 30 candidates and keeps the best five. The LLM drafts an answer from those passages, and guardrails check policy, PII and grounding before the answer returns with citations.

The re-ranker is the quality step: a cross-encoder reads each query and passage together, which is slower than vector distance alone but more accurate. Ingestion and querying are separate, so new documents become searchable once the queue drains. The embedding model must stay the same for documents and queries, and changing it means re-indexing everything. Logging the passage ids behind each answer makes quality problems traceable.

Useful for

  • Answering staff questions from an internal wiki and ticket history
  • Adding cited answers to a product help centre search box
  • Comparing embedding models before re-indexing a document library

What's included

  • A designed cover slide
  • The diagram: 11 components and 10 connections as editable shapes
  • A components table and the 7-step data flow
  • A legend with notes
  • The same diagram as a draw.io (diagrams.net) file

How to use it

  1. 1

    Click Make a copy in Google Slides, then confirm on the Google page. The copy is saved to your own Google Drive.

  2. 2

    Rename Document sources, Chunking, Embedding model and the other boxes inside Ingestion lane (async) to your own components, and delete the ones your system does not have.

  3. 3

    Rewrite the 7-step data flow and the 8-row components table so they match the arrows you keep.

  4. 4

    For the draw.io version, download rag-pipeline-architecture-diagram.drawio and open it at app.diagrams.net.

What you need

Requirements

  • A Google account for Google Slides, or the free draw.io (diagrams.net) editor

Works with

  • Google Slides
  • Microsoft PowerPoint (File → Download → .pptx)
  • draw.io / diagrams.net (.drawio file)

Questions

What does the re-ranker add to a RAG pipeline?

Vector search returns candidates that are close in embedding space, which is fast but coarse. A cross-encoder re-ranker scores each query and passage pair directly, so the best passages reach the LLM. Here it keeps the top five from about 30 candidates.

Why must the same embedding model be used for documents and queries?

Vectors are comparable only when they come from the same model, so a query embedded by a different model lands in a different space. Changing the model means re-embedding and re-indexing every document.

How do guardrails stop an unsupported answer?

They check the draft against policy, PII rules and grounding, and block any answer that has no supporting source. The reply goes out only with the passages it cites.

  • #ai-architecture-diagram
  • #architecture-diagram
  • #google-slides
  • #drawio
  • #diagram-template
  • #free-template

More ai architecture diagram templates

See all 12

Also in Developer workflows

All developer workflows templates
Get this template

Preparing your template…