Skip to main content
ARCHOS 525 BLUEPRINT · /d/dgm_semantic-caching

Semantic Caching for LLM Applications (Embedding Lookup & Tenant ACL)

6 COMPONENTS · 6 FLOWS · UPDATED 2026-11-24
GITHUB README / PR PREVIEW CARD
[![Semantic Caching for LLM Applications (Embedding Lookup & Tenant ACL) — ArchOS Architecture](https://archos.sageideas.dev/d/dgm_semantic-caching/opengraph-image)](https://archos.sageideas.dev/d/dgm_semantic-caching)

*Interactive architecture diagram powered by [ArchOS Studio](https://archos.sageideas.dev/d/dgm_semantic-caching)*
NOTION / DOCS / CONFLUENCE EMBED
<iframe src="https://archos.sageideas.dev/embed/dgm_semantic-caching" width="100%" height="580" style="border:1px solid rgba(240,236,225,0.14);border-radius:6px;" loading="lazy" title="Semantic Caching for LLM Applications (Embedding Lookup & Tenant ACL) — Interactive in ArchOS"></iframe>
PORTABLE MERMAID SPEC (GITHUB / NOTION / RFC)
flowchart LR
  client_0["LLM App Services"]
  n1_1["LLM Cache Proxy"]
  n2a_2[("Embedding & Vector")]
  n2b_3["Tenant ACL Filter"]
  n3_4["LLM Upstream Pool"]
  downstream_5["Downstream & OTel"]
  client_0 -->|"1. Check · HTTPS"| n1_1
  n1_1 -->|"2a. Sim = · gRPC"| n2a_2
  n1_1 -.->|"2b. Scope · In-Proc"| n2b_3
  n2a_2 -->|"3a. Infer LLM · HTTPS"| n3_4
  n2b_3 -->|"3b. Apply · Async"| n3_4
  n3_4 -.->|"4. Emit / · OTLP/API"| downstream_5

COMPONENT STACK (6)

  • LLM App ServicesSTATELESS
    Repeated & near-dup prompts
  • LLM Cache ProxySTATELESS
    Exact hash -> vector lookup
  • Embedding & VectorSTATEFUL
    Fast embed + ANN threshold
  • Tenant ACL FilterSTATELESS
    Strict tenant + model key
  • LLM Upstream PoolSTATELESS
    Cache-miss inference + fill
  • Downstream & OTelSTATELESS
    Consumers, metrics & SLOs

REQUEST & DATA FLOW (6)

  1. LLM App Services → LLM Cache Proxy (Check)[HTTPS]
  2. LLM Cache Proxy → Embedding & Vector (Sim >=)[gRPC]
  3. LLM Cache Proxy → Tenant ACL Filter (Scope)[In-Proc]
  4. Embedding & Vector → LLM Upstream Pool (Infer LLM)[HTTPS]
  5. Tenant ACL Filter → LLM Upstream Pool (Apply)[Async]
  6. LLM Upstream Pool → Downstream & OTel (Emit /)[OTLP/API]
Configure NGINX / Postgres / K8s →60-Sec L4–L7 Diagnostic →