> ## Documentation Index
> Fetch the complete documentation index at: https://iso-topology.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# RAG pipeline architecture diagram

> A reproducible rag pipeline architecture diagram with complete source, rendering commands, and practical modifications.

This example separates document ingestion and indexing from the query-serving path. A vector database connects the two responsibilities.

![RAG pipeline architecture diagram rendered from the linked complete source](https://mintcdn.com/iso-topology/i34aIj-BE0ECOg6t/assets/rag-pipeline.svg?fit=max\&auto=format\&n=i34aIj-BE0ECOg6t\&q=85\&s=430a0ce414473f2ffa5a5baedef27349)

[Open the full-size SVG](../assets/rag-pipeline.svg) · [Download PNG](../assets/rag-pipeline.png) to inspect the connections and labels. The image is generated from the complete source below.

## Reproduce this diagram

You need Go 1.25 or later and Git. The complete source is [`samples/topology/rag-pipeline/input.yaml`](https://github.com/NexusFox88/iso-topology/blob/main/samples/topology/rag-pipeline/input.yaml).

```bash theme={"system"}
git clone https://github.com/NexusFox88/iso-topology
cd iso-topology
git rev-parse HEAD
go build -o isotopo ./cmd/isotopo
./isotopo render samples/topology/rag-pipeline/input.yaml ./out-rag-pipeline
```

On Windows, build `isotopo.exe` and invoke that executable. Open `out-rag-pipeline/topology.html`. Record the revision before adapting the source; the published SVG is regenerated from this source when the renderer or sample changes.

## Make it your own

Copy the source to a separate file before editing. Open the copy with `isotopo serve my-architecture.yaml`. Parseable edits automatically save to that file.

### Change the sources

Rename the Docs component and adapt the ingestion nodes to the actual indexing process.

### Make the query path explicit

Review the retriever, model and database edges; label them with the traffic they represent.

### Adapt the visual language

Change shared theme and part styles consistently. Inspect contrast on both the dark substrate and light tile faces.

## Verify and publish

```bash theme={"system"}
./isotopo validate samples/topology/rag-pipeline/input.yaml
./isotopo render --projection top samples/topology/rag-pipeline/input.yaml ./out-plan
```

For your edited copy, substitute its path. Compare the top-down and isometric views, inspect remaining diagnostics, and verify the intended relationship directions. See [quality checks](https://iso-topology.mintlify.site/guides/quality.md) and [publishing](https://iso-topology.mintlify.site/getting-started/05-publishing.md).

## A five-minute editing task

Open your copied YAML in local Studio, select the `retriever` node and change its label to **Hybrid Retriever**. Keep its ID unchanged so existing connectors still reference the same component. Render the saved file again and check that the new label appears in both the isometric and top-down output, with the same incoming and outgoing relationships. Run `isotopo validate my-architecture.yaml` and inspect any warnings before publishing.

For a smaller no-install introduction, [try the browser playground](https://nexusfox88.github.io/iso-topology/?example=rag). Its starter scene is deliberately simpler than the full diagram on this page. Use the local path above for this complete sample.

The project-authored diagram source is available under [Apache-2.0](https://github.com/NexusFox88/iso-topology/blob/main/LICENSE). When reusing it, retain applicable license and notice requirements. A helpful attribution is “Adapted from iso-topology — rag-pipeline”; attribution does not imply endorsement by the depicted products. Third-party logos and names retain their respective rights.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.