RAG Pipeline Architecture

flowchart TD %% Styling Definitions classDef pill fill:#f5f3ff,stroke:#8b5cf6,stroke-width:2px,color:#4c1d95,rx:30,ry:30; classDef squircle fill:#f0f9ff,stroke:#0ea5e9,stroke-width:2px,color:#0c4a6e,rx:15,ry:15; classDef logic fill:#fff7ed,stroke:#f97316,stroke-width:2px,color:#7c2d12,rx:15,ry:15; classDef final fill:#f0fdf4,stroke:#22c55e,stroke-width:2px,color:#14532d,rx:30,ry:30; subgraph Ingestion ["PHASE 1: DATA INGESTION"] direction TB A(["1. Data Sources"]) --> B["2. Smart Chunking"] B --> C["3. Embedding"] C --> D[("4. Vector Store")] end %% Added a spacer to prevent line crossing subgraph Inference ["PHASE 2: RETRIEVAL & LOGIC"] direction TB E[/"5. User Query"/] --> F["6. Vectorization"] F --> G{"7. Retrieval"} G --> H["8. Augmentation"] end subgraph Generation ["PHASE 3: GENERATION"] direction TB I(["9. Grounded Answer"]) end %% Cross-Phase Connections D -.->|Context| G H ===> I %% Assigning Classes class A,B,C pill; class D squircle; class E,F,G,H logic; class I final; %% Visual Section Boxing style Ingestion fill:#fcfcfd,stroke:#e2e8f0,stroke-width:1px; style Inference fill:#fcfcfd,stroke:#e2e8f0,stroke-width:1px; style Generation fill:#fcfcfd,stroke:#e2e8f0,stroke-width:1px; %% Link Styling linkStyle default stroke:#cbd5e1,stroke-width:2px,fill:none; linkStyle 8 stroke:#22c55e,stroke-width:3px;

Comments

Popular posts from this blog

[MAIN PROGRAM] UNDONE HOUSEHOLD WORKs WEB-PROGRAM v2/MAIN

PENDING ITEMs [REVISION] v0