Skip to main content
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
[![Hybrid retrieval with reranking — ArchOS Architecture](https://archos.sageideas.dev/d/dgm_rag-hybrid-rerank/opengraph-image)](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_9

COMPONENT STACK (10)

  • Web ClientSTATEFUL
    Application that asks a question
  • Inference serverSTATELESS
    Language model that rewrites the query
  • Identity provider (IdP)STATEFUL
    Issues the JWT; publishes its signing keys
  • API gatewaySTATELESS
    Checks the JWT, then starts the search
  • RerankingSTATELESS
    Retriever: fuses two lists, reranks top 50
  • EmbeddingSTATELESS
    Embedding service for the query
  • Search indexSTATEFUL
    Inverted index for keyword match
  • Vector databaseSTATEFUL
    ANN index, nearest neighbours
  • Time-series database (TSDB)STATEFUL
    Stores latency per stage and empty-result rate
  • AlertingSTATEFUL
    Pages on-call when search latency rises

REQUEST & DATA FLOW (15)

  1. Web Client → API gateway (Calls with JWT)[HTTPS]
  2. API gateway → Reranking (Starts search)[HTTP/2]
  3. Reranking → Inference server (Rewrites)[HTTPS]
  4. Inference server → Reranking (Rewrite)[HTTPS]
  5. Reranking → Embedding (Embeds query)[HTTP/2]
  6. Embedding → Reranking (Vector)[HTTP/2]
  7. Reranking → Search index (Keywords)[HTTP/2]
  8. Reranking → Vector database (Vector query)[HTTP/2]
  9. Search index → Reranking (Hits)[HTTP/2]
  10. Vector database → Reranking (Hits)[HTTP/2]
  11. Reranking → API gateway (Passages)[HTTP/2]
  12. API gateway → Web Client (Passages)[HTTPS]
  13. Identity provider (IdP) → API gateway (Publishes keys (JWKS))[HTTPS]
  14. Reranking → Time-series database (TSDB) (Exports (OTLP))[OTLP]
Configure NGINX / Postgres / K8s →60-Sec L4–L7 Diagnostic →