Skip to main content
ARCHOS 525 BLUEPRINT · /d/dgm_agent-chunking-and-retrieval-evaluation

Chunking strategies and retrieval evaluation (recall@k, hybrid search, reranking, judge)

17 COMPONENTS · 23 FLOWS · UPDATED 2026-11-21
GITHUB README / PR PREVIEW CARD
[![Chunking strategies and retrieval evaluation (recall@k, hybrid search, reranking, judge) — ArchOS Architecture](https://archos.sageideas.dev/d/dgm_agent-chunking-and-retrieval-evaluation/opengraph-image)](https://archos.sageideas.dev/d/dgm_agent-chunking-and-retrieval-evaluation)

*Interactive architecture diagram powered by [ArchOS Studio](https://archos.sageideas.dev/d/dgm_agent-chunking-and-retrieval-evaluation)*
NOTION / DOCS / CONFLUENCE EMBED
<iframe src="https://archos.sageideas.dev/embed/dgm_agent-chunking-and-retrieval-evaluation" width="100%" height="580" style="border:1px solid rgba(240,236,225,0.14);border-radius:6px;" loading="lazy" title="Chunking strategies and retrieval evaluation (recall@k, hybrid search, reranking, judge) — Interactive in ArchOS"></iframe>
PORTABLE MERMAID SPEC (GITHUB / NOTION / RFC)
flowchart LR
  client_0[("Web Client")]
  gen_1["Inference server"]
  judge_2["Inference server"]
  alerting_3[("Alerting")]
  idp_4[("Identity provider (IdP)")]
  gw_5["API gateway"]
  pdp_6["Policy decision point (PDP)"]
  secrets_7[("Secrets manager")]
  obj_8[("Object storage")]
  registry_9[("Prompt and config registry")]
  eval_10[("Evaluation service")]
  chunker_11["Chunking worker"]
  embed_12["Embedding"]
  tsdb_13[("Time-series database (TSDB)")]
  retr_14["Reranking"]
  search_15[("Search index")]
  capacity_16["Capacity Estimate"]
  client_0 -->|"1. Starts run with JWT · HTTPS"| gw_5
  gw_5 -->|"2. Starts run (mTLS) · HTTP/2"| eval_10
  eval_10 -->|"3. Builds index · HTTP/2"| chunker_11
  chunker_11 -->|"4. Index ready · HTTP/2"| eval_10
  eval_10 -->|"5. Runs queries · HTTP/2"| retr_14
  retr_14 -->|"6. Returns hits · HTTP/2"| eval_10
  eval_10 -->|"7. Writes answers · HTTPS"| gen_1
  gen_1 -->|"8. Returns answers · HTTPS"| eval_10
  eval_10 -->|"9. Judges answers · HTTPS"| judge_2
  judge_2 -->|"10. Returns scores · HTTPS"| eval_10
  eval_10 -->|"11. Returns metrics · HTTP/2"| gw_5
  gw_5 -->|"12. Relays metrics · HTTPS"| client_0
  idp_4 -->|"Publishes keys (JWKS) · HTTPS"| gw_5
  gw_5 -->|"Asks, fails closed · HTTP/2"| pdp_6
  secrets_7 -->|"Supplies model keys · HTTPS"| eval_10
  obj_8 -->|"Supplies documents · HTTPS"| chunker_11
  eval_10 -->|"Set in, report out · HTTP/2"| registry_9
  chunker_11 -->|"Embeds chunks · HTTP/2"| embed_12
  chunker_11 -->|"Upserts text, vectors · HTTP/2"| search_15
  retr_14 -->|"Embeds query · HTTP/2"| embed_12
  retr_14 -->|"Runs both queries · HTTP/2"| search_15
  eval_10 -->|"Exports (OTLP) · OTLP"| tsdb_13
  tsdb_13 -->|"Feeds Alerting · HTTP"| alerting_3

COMPONENT STACK (16)

  • Web ClientSTATEFUL
    Engineer who compares chunking setups
  • Inference serverSTATELESS
    Model that writes answers, outside
  • Inference serverSTATELESS
    A different model that judges
  • AlertingSTATEFUL
    Pages on-call when runs fail
  • Identity provider (IdP)STATEFUL
    Issues the JWT; publishes its keys
  • API gatewaySTATELESS
    Checks the JWT, starts the run
  • Policy decision point (PDP)STATELESS
    Who may run on which corpus
  • Secrets managerSTATEFUL
    Holds both model keys
  • Object storageSTATEFUL
    Source documents, system of record
  • Prompt and config registrySTATEFUL
    Pinned golden set; saved reports
  • Evaluation serviceSTATEFUL
    Runs queries, scores, saves report
  • Chunking workerSTATELESS
    Splits by structure, tags parent id
  • EmbeddingSTATELESS
    Vectors for chunks and queries
  • Time-series database (TSDB)STATEFUL
    Run time, failures, recall@5
  • RerankingSTATELESS
    Fuses two lists, reranks top 50
  • Search indexSTATEFUL
    Keyword and vector fields, one index

REQUEST & DATA FLOW (23)

  1. Web Client → API gateway (Starts run with JWT)[HTTPS]
  2. API gateway → Evaluation service (Starts run (mTLS))[HTTP/2]
  3. Evaluation service → Chunking worker (Builds index)[HTTP/2]
  4. Chunking worker → Evaluation service (Index ready)[HTTP/2]
  5. Evaluation service → Reranking (Runs queries)[HTTP/2]
  6. Reranking → Evaluation service (Returns hits)[HTTP/2]
  7. Evaluation service → Inference server (Writes answers)[HTTPS]
  8. Inference server → Evaluation service (Returns answers)[HTTPS]
  9. Evaluation service → Inference server (Judges answers)[HTTPS]
  10. Inference server → Evaluation service (Returns scores)[HTTPS]
  11. Evaluation service → API gateway (Returns metrics)[HTTP/2]
  12. API gateway → Web Client (Relays metrics)[HTTPS]
  13. Identity provider (IdP) → API gateway (Publishes keys (JWKS))[HTTPS]
  14. API gateway → Policy decision point (PDP) (Asks, fails closed)[HTTP/2]
Configure NGINX / Postgres / K8s →60-Sec L4–L7 Diagnostic →