RAG Pipeline Architecture
flowchart TD
%% Styling Definitions
classDef prep fill:#312e81,stroke:#6366f1,stroke-width:2px,color:#fff;
classDef storage fill:#164e63,stroke:#06b6d4,stroke-width:2px,color:#fff;
classDef logic fill:#431407,stroke:#f59e0b,stroke-width:2px,color:#fff;
classDef result fill:#064e3b,stroke:#10b981,stroke-width:2px,color:#fff;
subgraph Ingestion [" "]
A(["fa:fa-file-import 1. Data Ingestion"])
B["fa:fa-scissors 2. Chunking"]
C["fa:fa-microchip 3. Embedding"]
D[("fa:fa-database 4. Vector DB")]
A --> B --> C --> D
end
subgraph Inference [" "]
E[/"fa:fa-keyboard User Query"/]
F["fa:fa-magnifying-glass 5. Embedding"]
G{"fa:fa-object-group 6. Retrieval"}
H["fa:fa-wand-magic-sparkles 7. Generation"]
E --> F --> G
D -.->|Context| G
G --> H
end
subgraph Output [" "]
I(["fa:fa-check-circle 8. Grounded Response"])
H --> I
end
%% Apply Classes
class A,B,C prep;
class D storage;
class E,F,G,H logic;
class I result;
%% Link Styling
linkStyle default stroke:#94a3b8,stroke-width:2px,fill:none;
Comments
Post a Comment