Skip to main content
ARCHOS 525 BLUEPRINT · /d/dgm_int-vector-cache

Semantic Response Cache Internals (Normalized Hash, ANN & Invalidation)

6 COMPONENTS · 6 FLOWS · UPDATED 2026-11-24
GITHUB README / PR PREVIEW CARD
[![Semantic Response Cache Internals (Normalized Hash, ANN & Invalidation) — ArchOS Architecture](https://archos.sageideas.dev/d/dgm_int-vector-cache/opengraph-image)](https://archos.sageideas.dev/d/dgm_int-vector-cache)

*Interactive architecture diagram powered by [ArchOS Studio](https://archos.sageideas.dev/d/dgm_int-vector-cache)*
NOTION / DOCS / CONFLUENCE EMBED
<iframe src="https://archos.sageideas.dev/embed/dgm_int-vector-cache" width="100%" height="580" style="border:1px solid rgba(240,236,225,0.14);border-radius:6px;" loading="lazy" title="Semantic Response Cache Internals (Normalized Hash, ANN & Invalidation) — Interactive in ArchOS"></iframe>
PORTABLE MERMAID SPEC (GITHUB / NOTION / RFC)
flowchart LR
  client_0["LLM & Agent Apps"]
  n1_1[("Exact Hash Gate")]
  n2a_2[("Embed & ANN Lookup")]
  n2b_3["Scope & Tag Guard"]
  n3_4["Async Fill & Purge"]
  downstream_5["Downstream & OTel"]
  client_0 -->|"1. Exact hit · Redis"| n1_1
  n1_1 -->|"2a. Sim = · gRPC"| n2a_2
  n1_1 -.->|"2b. Verify key · In-Proc"| n2b_3
  n2a_2 -->|"3a. Fill/Purge · Async"| n3_4
  n2b_3 -->|"3b. Sync · Control"| n3_4
  n3_4 -.->|"4. Emit / · OTLP/API"| downstream_5

COMPONENT STACK (6)

  • LLM & Agent AppsSTATELESS
    High-repeat user queries
  • Exact Hash GateSTATEFUL
    1ms Redis SHA-256 lookup
  • Embed & ANN LookupSTATEFUL
    Fast mini-embed + HNSW search
  • Scope & Tag GuardSTATELESS
    Tenant + model + prompt hash
  • Async Fill & PurgeSTATELESS
    Write-back + doc-ID tag purge
  • Downstream & OTelSTATELESS
    Consumers, metrics & SLOs

REQUEST & DATA FLOW (6)

  1. LLM & Agent Apps → Exact Hash Gate (Exact hit)[Redis]
  2. Exact Hash Gate → Embed & ANN Lookup (Sim >=)[gRPC]
  3. Exact Hash Gate → Scope & Tag Guard (Verify key)[In-Proc]
  4. Embed & ANN Lookup → Async Fill & Purge (Fill/Purge)[Async]
  5. Scope & Tag Guard → Async Fill & Purge (Sync)[Control]
  6. Async Fill & Purge → Downstream & OTel (Emit /)[OTLP/API]
Configure NGINX / Postgres / K8s →60-Sec L4–L7 Diagnostic →