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
[](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_5COMPONENT STACK (6)
- LLM & Agent AppsSTATELESSHigh-repeat user queries
- Exact Hash GateSTATEFUL1ms Redis SHA-256 lookup
- Embed & ANN LookupSTATEFULFast mini-embed + HNSW search
- Scope & Tag GuardSTATELESSTenant + model + prompt hash
- Async Fill & PurgeSTATELESSWrite-back + doc-ID tag purge
- Downstream & OTelSTATELESSConsumers, metrics & SLOs
REQUEST & DATA FLOW (6)
- LLM & Agent Apps → Exact Hash Gate (Exact hit)[Redis]
- Exact Hash Gate → Embed & ANN Lookup (Sim >=)[gRPC]
- Exact Hash Gate → Scope & Tag Guard (Verify key)[In-Proc]
- Embed & ANN Lookup → Async Fill & Purge (Fill/Purge)[Async]
- Scope & Tag Guard → Async Fill & Purge (Sync)[Control]
- Async Fill & Purge → Downstream & OTel (Emit /)[OTLP/API]