ARCHOS 525 BLUEPRINT · /d/dgm_rag-hybrid-rerank
Hybrid retrieval with reranking
11 COMPONENTS · 15 FLOWS · UPDATED 2026-11-20
GITHUB README / PR PREVIEW CARD
[](https://archos.sageideas.dev/d/dgm_rag-hybrid-rerank) *Interactive architecture diagram powered by [ArchOS Studio](https://archos.sageideas.dev/d/dgm_rag-hybrid-rerank)*
NOTION / DOCS / CONFLUENCE EMBED
<iframe src="https://archos.sageideas.dev/embed/dgm_rag-hybrid-rerank" width="100%" height="580" style="border:1px solid rgba(240,236,225,0.14);border-radius:6px;" loading="lazy" title="Hybrid retrieval with reranking — Interactive in ArchOS"></iframe>
PORTABLE MERMAID SPEC (GITHUB / NOTION / RFC)
flowchart LR
client_0[("Web Client")]
llm_1["Inference server"]
idp_2[("Identity provider (IdP)")]
gw_3["API gateway"]
retr_4["Reranking"]
embed_5["Embedding"]
search_6[("Search index")]
vec_7[("Vector database")]
tsdb_8[("Time-series database (TSDB)")]
alerting_9[("Alerting")]
capacity_10["Capacity Estimate"]
client_0 -->|"1. Calls with JWT · HTTPS"| gw_3
gw_3 -->|"2. Starts search · HTTP/2"| retr_4
retr_4 -->|"3. Rewrites · HTTPS"| llm_1
llm_1 -->|"4. Rewrite · HTTPS"| retr_4
retr_4 -->|"5. Embeds query · HTTP/2"| embed_5
embed_5 -->|"6. Vector · HTTP/2"| retr_4
retr_4 -->|"7a. Keywords · HTTP/2"| search_6
retr_4 -->|"7b. Vector query · HTTP/2"| vec_7
search_6 -->|"8a. Hits · HTTP/2"| retr_4
vec_7 -->|"8b. Hits · HTTP/2"| retr_4
retr_4 -->|"9. Passages · HTTP/2"| gw_3
gw_3 -->|"10. Passages · HTTPS"| client_0
idp_2 -->|"Publishes keys (JWKS) · HTTPS"| gw_3
retr_4 -->|"Exports (OTLP) · OTLP"| tsdb_8
tsdb_8 -->|"Queried by alerting · HTTP"| alerting_9COMPONENT STACK (10)
- Web ClientSTATEFULApplication that asks a question
- Inference serverSTATELESSLanguage model that rewrites the query
- Identity provider (IdP)STATEFULIssues the JWT; publishes its signing keys
- API gatewaySTATELESSChecks the JWT, then starts the search
- RerankingSTATELESSRetriever: fuses two lists, reranks top 50
- EmbeddingSTATELESSEmbedding service for the query
- Search indexSTATEFULInverted index for keyword match
- Vector databaseSTATEFULANN index, nearest neighbours
- Time-series database (TSDB)STATEFULStores latency per stage and empty-result rate
- AlertingSTATEFULPages on-call when search latency rises
REQUEST & DATA FLOW (15)
- Web Client → API gateway (Calls with JWT)[HTTPS]
- API gateway → Reranking (Starts search)[HTTP/2]
- Reranking → Inference server (Rewrites)[HTTPS]
- Inference server → Reranking (Rewrite)[HTTPS]
- Reranking → Embedding (Embeds query)[HTTP/2]
- Embedding → Reranking (Vector)[HTTP/2]
- Reranking → Search index (Keywords)[HTTP/2]
- Reranking → Vector database (Vector query)[HTTP/2]
- Search index → Reranking (Hits)[HTTP/2]
- Vector database → Reranking (Hits)[HTTP/2]
- Reranking → API gateway (Passages)[HTTP/2]
- API gateway → Web Client (Passages)[HTTPS]
- Identity provider (IdP) → API gateway (Publishes keys (JWKS))[HTTPS]
- Reranking → Time-series database (TSDB) (Exports (OTLP))[OTLP]