RAG Architecture

flowchart TD %% Styling Definitions classDef pill fill:#f5f3ff,stroke:#c4b5fd,stroke-width:2px,color:#4c1d95,rx:20,ry:20; classDef squircle fill:#ecfeff,stroke:#a5f3fc,stroke-width:2px,color:#164e63,rx:12,ry:12; classDef logic fill:#fffbeb,stroke:#fde68a,stroke-width:2px,color:#78350f,rx:12,ry:12; classDef final fill:#f0fdf4,stroke:#22c55e,stroke-width:3px,color:#14532d,rx:20,ry:20; %% Label Styling (Matches Subgraph Titles) classDef phaseLabelBottom fill:none,stroke:none,color:#1e293b,font-size:13px,font-weight:800; subgraph Ingestion ["PHASE 01: DATA INGESTION"] direction TB A("1. Data Sources") --> B("2. Smart Chunking") B --> C("3. Embedding") C --> D[("4. Vector Store")] end subgraph Inference ["PHASE 02: RETRIEVAL & REASONING"] direction TB E[/"5. User Query"/] --> F("6. Vectorization") F --> G{"7. Semantic Search"} G --> H("8. Context Augmentation") end %% Phase 3: No Subgraph for tighter fit I("9. Grounded Answer") L1("PHASE 03: OUTPUT") %% Global Connections D -.->|Context| G H ===> I I ~~~ L1 %% Apply styles class A,B,C pill; class D squircle; class E,F,G,H logic; class I final; class L1 phaseLabelBottom; style Ingestion fill:#fafafa,stroke:#f1f5f9; style Inference fill:#fafafa,stroke:#f1f5f9; 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