Skip to content
flowchart.tools

Diagrams for AI and data pipelines

AI systems are pipelines with a lot of moving parts: ingestion, chunking, embeddings, a vector store, retrieval, a model call and the checks around it. A diagram is the fastest way to agree what runs where, and what happens when a step fails.

For: ML engineers, data engineers and developers building LLM features

The problem

LLM application architectures change weekly, and the diagram in last month's design doc no longer matches what is deployed. Vendor-specific diagram libraries go out of date even faster. Teams need a quick way to redraw the pipeline as it evolves, and to show both the offline ingestion path and the online request path without them blurring together.

Which diagrams fit

Architecture diagram
For the pipeline itself: sources, queues, workers, the vector store, the model API and the application, as vendor-neutral components.
Flowchart
For agent logic and guardrails: when the model calls a tool, retries, falls back or hands off to a person.

A way of working

  1. Split the diagram into two paths: offline ingestion (load, chunk, embed, index) and online serving (query, retrieve, rerank, generate, check). Draw them as separate rows or groups.

  2. Use dashed connectors for asynchronous work such as ingestion jobs and queue consumers, and solid ones for the request path.

  3. Draw agent and guardrail logic as a flowchart: every tool call, retry and fallback is a decision with labelled branches.

  4. Paste representative JSON (a tool-call payload, a retrieved chunk with metadata) into JSON to diagram to document the data contracts between steps.

Separate the two clocks

A retrieval-augmented generation system runs on two clocks: ingestion, which runs in batches or on change, and serving, which runs per request in milliseconds. Drawing them in one tangle hides which latency matters where. Put ingestion in its own group and connect it to serving only through the shared index.

Draw the failure paths

The interesting part of an LLM pipeline is what happens when a step fails or returns something unusable: retrieval returns nothing relevant, the model's output fails validation, a tool call times out. Each of those deserves a labelled branch. A diagram with only the happy path describes a demo, not a production system.

Vendor-neutral on purpose

Model providers, vector databases and orchestration frameworks change fast. Generic shapes labelled with their role ("embedding model", "vector index", "reranker") keep a diagram valid through a provider switch, and put the product name in the label where it can be edited in seconds.

Templates to start from

Tools for this job

Read next

Questions

Is there a RAG architecture template?
Yes. The RAG pipeline template shows ingestion, embedding, the vector store, retrieval and generation as an editable diagram. Open it in the editor and relabel each component with the services you use.
Can I diagram an LLM agent's tool calls?
Yes, as a flowchart: the model's decision to call a tool is a decision symbol, each tool is a process step, and the loop back to the model is an arrow. Labelled branches for errors and timeouts make the agent's failure behaviour explicit.
Are prompts or payloads I paste sent to an AI service?
No. The tools do not call any model or API. JSON, text and Mermaid are parsed in your browser, and nothing you paste is uploaded.

Other use cases