Skip to main content
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
[![Basic RAG pipeline (ingest, retrieve, generate) — ArchOS Architecture](https://archos.sageideas.dev/d/dgm_rag-basic/opengraph-image)](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_6

COMPONENT STACK (7)

  • API ClientSTATEFUL
    Asks questions over the Internet
  • Container runtimeSTATELESS
    RAG service: checks JWT, queries and ingests
  • PostgreSQLSTATEFUL
    Source documents and their ids
  • EmbeddingSTATELESS
    Turns text into vectors
  • Vector databaseSTATEFUL
    Holds chunk vectors; returns top matches
  • Inference serverSTATELESS
    Writes the answer from the chunks
  • Time-series database (TSDB)STATEFUL
    Stores latency and no-hit rate

REQUEST & DATA FLOW (10)

  1. API Client → Container runtime (Asks with JWT)[HTTPS]
  2. Container runtime → Embedding (Embeds text)[HTTP/2]
  3. Embedding → Container runtime (Returns vector)[HTTP/2]
  4. Container runtime → Vector database (Searches, indexes)[HTTP/2]
  5. Vector database → Container runtime (Returns chunks)[HTTP/2]
  6. Container runtime → Inference server (Sends prompt)[HTTP/2]
  7. Inference server → Container runtime (Returns answer)[HTTP/2]
  8. Container runtime → API Client (Returns answer)[HTTPS]
  9. PostgreSQL → Container runtime (Reads documents)[SQL]
  10. Container runtime → Time-series database (TSDB) (Exports (OTLP))[OTLP]
Configure NGINX / Postgres / K8s →60-Sec L4–L7 Diagnostic →