GalleryExamplesDraw your repo

Examples / Pipeline diagrams

RAG pipeline

How documents become answers in retrieval-augmented generation: ingestion, chunking, embeddings and a vector store, then retrieval and a model call at question time.

RAG pipeline: pipeline diagram of Document sources, Load documents, Clean text, Split into chunks, Embed chunks and 7 more▶ Play the story
Open in Plotix A copy you can edit, or ask the agent to change.
Plotix's agent drew it from this request

Draw a pipeline diagram of a retrieval-augmented generation system: document sources are loaded, cleaned, split into chunks, embedded and stored in a vector database; at question time the question is embedded, similar chunks are retrieved and reranked, and a language model writes the answer with citations.

Step by step: Index documents

  1. The loader pulls documents from the sources and extracts their raw text.
  2. The text is cleaned and split into overlapping chunks.
  3. Each chunk is embedded and its vector is stored with its source metadata.

Step by step: Answer a question

  1. The question is turned into a query vector.
  2. The nearest chunks are retrieved from the vector database.
  3. The candidates are reranked and the best five are kept.
  4. The language model writes an answer from those chunks, with citations.
What's in it
RAG pipeline: pipeline diagram of Document sources, Load documents, Clean text, Split into chunks, Embed chunks and 7 more

How the parts connect

Related examples

OAuth login with PKCE: sequence diagram of Browser, React SPA, Authorization server and App API
OAuth login with PKCESequence · How a single-page app signs a user in with OAuth 2.0 authorization code and PKCE, from th…
Stripe checkout and webhook: flow diagram of Shopper starts checkout, Create Checkout Session, Redirect shopper to Stripe, Payment succeeds?, Card declined or error and 5 more
Stripe checkout and webhookFlow · The steps from a cart to a paid order with Stripe Checkout, including the webhook that co…
Serverless API on AWS: deployment diagram of CloudFront, API Gateway, Lambda functions, Cognito user pool, CloudWatch Logs and 4 more
Serverless API on AWSDeployment · Where a serverless web API runs on AWS: CloudFront and S3 for the site, API Gateway and L…