ARCHOS 525 BLUEPRINT · /d/dgm_rag-basic
Basic RAG pipeline (ingest, retrieve, generate)
8 COMPONENTS · 10 FLOWS · UPDATED 2026-11-20
GITHUB README / PR PREVIEW CARD
[](https://archos.sageideas.dev/d/dgm_rag-basic) *Interactive architecture diagram powered by [ArchOS Studio](https://archos.sageideas.dev/d/dgm_rag-basic)*
NOTION / DOCS / CONFLUENCE EMBED
<iframe src="https://archos.sageideas.dev/embed/dgm_rag-basic" width="100%" height="580" style="border:1px solid rgba(240,236,225,0.14);border-radius:6px;" loading="lazy" title="Basic RAG pipeline (ingest, retrieve, generate) — Interactive in ArchOS"></iframe>
PORTABLE MERMAID SPEC (GITHUB / NOTION / RFC)
flowchart LR
client_0[("API Client")]
rag_1["Container runtime"]
docs_2[("PostgreSQL")]
emb_3["Embedding"]
vs_4[("Vector database")]
llm_5["Inference server"]
tsdb_6[("Time-series database (TSDB)")]
capacity_7["Capacity Estimate"]
client_0 -->|"1. Asks with JWT · HTTPS"| rag_1
rag_1 -->|"2. Embeds text · HTTP/2"| emb_3
emb_3 -->|"3. Returns vector · HTTP/2"| rag_1
rag_1 -->|"4. Searches, indexes · HTTP/2"| vs_4
vs_4 -->|"5. Returns chunks · HTTP/2"| rag_1
rag_1 -->|"6. Sends prompt · HTTP/2"| llm_5
llm_5 -->|"7. Returns answer · HTTP/2"| rag_1
rag_1 -->|"8. Returns answer · HTTPS"| client_0
docs_2 -->|"Reads documents · SQL"| rag_1
rag_1 -->|"Exports (OTLP) · OTLP"| tsdb_6COMPONENT STACK (7)
- API ClientSTATEFULAsks questions over the Internet
- Container runtimeSTATELESSRAG service: checks JWT, queries and ingests
- PostgreSQLSTATEFULSource documents and their ids
- EmbeddingSTATELESSTurns text into vectors
- Vector databaseSTATEFULHolds chunk vectors; returns top matches
- Inference serverSTATELESSWrites the answer from the chunks
- Time-series database (TSDB)STATEFULStores latency and no-hit rate
REQUEST & DATA FLOW (10)
- API Client → Container runtime (Asks with JWT)[HTTPS]
- Container runtime → Embedding (Embeds text)[HTTP/2]
- Embedding → Container runtime (Returns vector)[HTTP/2]
- Container runtime → Vector database (Searches, indexes)[HTTP/2]
- Vector database → Container runtime (Returns chunks)[HTTP/2]
- Container runtime → Inference server (Sends prompt)[HTTP/2]
- Inference server → Container runtime (Returns answer)[HTTP/2]
- Container runtime → API Client (Returns answer)[HTTPS]
- PostgreSQL → Container runtime (Reads documents)[SQL]
- Container runtime → Time-series database (TSDB) (Exports (OTLP))[OTLP]