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
[](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_3COMPONENT STACK (16)
- Web ClientSTATEFULEngineer who compares chunking setups
- Inference serverSTATELESSModel that writes answers, outside
- Inference serverSTATELESSA different model that judges
- AlertingSTATEFULPages on-call when runs fail
- Identity provider (IdP)STATEFULIssues the JWT; publishes its keys
- API gatewaySTATELESSChecks the JWT, starts the run
- Policy decision point (PDP)STATELESSWho may run on which corpus
- Secrets managerSTATEFULHolds both model keys
- Object storageSTATEFULSource documents, system of record
- Prompt and config registrySTATEFULPinned golden set; saved reports
- Evaluation serviceSTATEFULRuns queries, scores, saves report
- Chunking workerSTATELESSSplits by structure, tags parent id
- EmbeddingSTATELESSVectors for chunks and queries
- Time-series database (TSDB)STATEFULRun time, failures, recall@5
- RerankingSTATELESSFuses two lists, reranks top 50
- Search indexSTATEFULKeyword and vector fields, one index
REQUEST & DATA FLOW (23)
- Web Client → API gateway (Starts run with JWT)[HTTPS]
- API gateway → Evaluation service (Starts run (mTLS))[HTTP/2]
- Evaluation service → Chunking worker (Builds index)[HTTP/2]
- Chunking worker → Evaluation service (Index ready)[HTTP/2]
- Evaluation service → Reranking (Runs queries)[HTTP/2]
- Reranking → Evaluation service (Returns hits)[HTTP/2]
- Evaluation service → Inference server (Writes answers)[HTTPS]
- Inference server → Evaluation service (Returns answers)[HTTPS]
- Evaluation service → Inference server (Judges answers)[HTTPS]
- Inference server → Evaluation service (Returns scores)[HTTPS]
- Evaluation service → API gateway (Returns metrics)[HTTP/2]
- API gateway → Web Client (Relays metrics)[HTTPS]
- Identity provider (IdP) → API gateway (Publishes keys (JWKS))[HTTPS]
- API gateway → Policy decision point (PDP) (Asks, fails closed)[HTTP/2]