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"]
C["3. Embedding"]
D[("4. Vector Store")]
A --> B --> C --> D
end
subgraph Inference ["PHASE 2: RETRIEVAL & LOGIC"]
direction TB
E[/"5. User Query"/]
F["6. Vectorization"]
G{"7. Retrieval"}
H["8. Augmentation"]
E --> F --> G
G --> H
end
subgraph Output ["PHASE 3: GENERATION"]
direction TB
I(["9. Grounded Answer"])
H --> I
end
%% Critical Cross-Connect
D -.->|Context| G
%% Assigning Classes
class A,B,C pill;
class D squircle;
class E,F,G,H logic;
class I final;
%% Subgraph Visual Fixes
style Ingestion fill:#f8fafc,stroke:#e2e8f0,stroke-dasharray: 5 5;
style Inference fill:#f8fafc,stroke:#e2e8f0,stroke-dasharray: 5 5;
style Output fill:#f8fafc,stroke:#e2e8f0,stroke-dasharray: 5 5;
%% Link Styling
linkStyle default stroke:#cbd5e1,stroke-width:2px,fill:none;
Comments
Post a Comment