Skip to content
Weave templates

RAG Pipeline

Documents → embed → vector DB; query → retrieve → LLM → answer.

Template previewWeave
Rendering…

Make it your own.

{
  "nodes": [
    { "id":"docs","type":"rect","label":"Documents","x":40,"y":60,"fill":"#e2e8f0","stroke":"#475569" },
    { "id":"chunk","type":"rect","label":"Chunk + clean","x":240,"y":60,"fill":"#fef3c7","stroke":"#a16207" },
    { "id":"emb","type":"rect","label":"Embedder","x":440,"y":60,"fill":"#dbeafe","stroke":"#2563eb" },
    { "id":"vdb","type":"rect","label":"Vector DB","x":640,"y":60,"fill":"#ede9fe","stroke":"#6d28d9" },
    { "id":"q","type":"ellipse","label":"User query","x":40,"y":240,"fill":"#fef3c7","stroke":"#a16207" },
    { "id":"qe","type":"rect","label":"Query embed","x":240,"y":240,"fill":"#dbeafe","stroke":"#2563eb" },
    { "id":"ret","type":"rect","label":"Retrieve top-k","x":440,"y":240,"fill":"#ede9fe","stroke":"#6d28d9" },
    { "id":"llm","type":"rect","label":"LLM","x":640,"y":240,"fill":"#fce7f3","stroke":"#be185d" },
    { "id":"ans","type":"ellipse","label":"Answer","x":840,"y":240,"fill":"#dcfce7","stroke":"#15803d" }
  ],
  "edges": [
    { "id":"e1","source":"docs","target":"chunk" },
    { "id":"e2","source":"chunk","target":"emb" },
    { "id":"e3","source":"emb","target":"vdb" },
    { "id":"e4","source":"q","target":"qe" },
    { "id":"e5","source":"qe","target":"ret" },
    { "id":"e6","source":"vdb","target":"ret" },
    { "id":"e7","source":"ret","target":"llm" },
    { "id":"e8","source":"llm","target":"ans" }
  ]
}