RAG Pipeline Architecture

flowchart TD %% Classes with rounded corners (rx/ry) classDef pill fill:#f5f3ff,stroke:#8b5cf6,stroke-width:2px,color:#4c1d95,rx:20,ry:20; classDef squircle fill:#f0f9ff,stroke:#0ea5e9,stroke-width:2px,color:#0c4a6e,rx:10,ry:10; classDef logic fill:#fff7ed,stroke:#f97316,stroke-width:2px,color:#7c2d12,rx:10,ry:10; classDef final fill:#f0fdf4,stroke:#22c55e,stroke-width:3px,color:#14532d,rx:20,ry:20; 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 Generation ["PHASE 3: GENERATION"] direction TB I("9. Grounded Answer") ["PHASE 3; GENERATION"] end %% Connections D -.->|CONTEXT| G H ===> I %% Apply styles class A,B,C pill; class D squircle; class E,F,G,H logic; class I final; style Ingestion fill:#fcfcfd,stroke:#e2e8f0,color:#64748b; style Inference fill:#fcfcfd,stroke:#e2e8f0,color:#64748b; style Generation fill:#fcfcfd,stroke:#e2e8f0,color:#64748b;

Comments

Popular posts from this blog

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

PENDING ITEMs [REVISION] v0