ModelRefs / RAG Evaluation — Architecture Blueprint
RAG Evaluation — Architecture Blueprint
Production architecture blueprint for RAG Evaluation: components, deployment, cost and latency, failure modes, evaluation and governance.
Overview
This is the implementation view of RAG Evaluation: the components it requires, where it can run, what it costs in latency and spend, how it fails, and what you must measure before putting it in front of users.
5 components to assemble, 5 documented failure modes, medium implementation complexity. Every statement below comes from the canonical workflow record with its sources and review date; where the evidence does not settle a question, the page says so rather than filling the gap.
- Implementation complexity
- medium
- Components
- 5
- Failure modes
- 5
- Evaluation readiness
- documented
- Sources
- 2read 2026-11-20
What this workflow takes in and produces
Takes in
- questions and expected answers or passages
- retrieved contexts
- generated answers
- human judgements for calibration
Produces
- retrieval relevance scores
- groundedness and answer-relevance scores
- regression reports
- failure case lists for review
Applied to
- scoring retrieval and generation separately
- regression testing a retrieval pipeline
- choosing between retrievers, prompts and models
Components you need to assemble
A working implementation needs 5 distinct components. Each is a build-or-buy decision in its own right.
- evaluation question set
- retrieval and generation logging
- automated judges with human calibration
- score tracking over versions
- failure review workflow
Implementation complexity: medium. This describes the integration and evaluation effort, not the difficulty of any single component.
Deployment patterns
Deployment options recorded for this workflow: managed-api, hybrid.
Topologies it has been recorded against: serverless-api, managed-container, self-hosted-cluster. Each changes the data-residency, scaling and cost profile, so confirm the one you need against current provider documentation.
Cost and latency
- Model-based judges cost tokens for every question and every run. Sample for routine checks and run the full set before releases.
- Measure the cost of a full evaluation run so it can be scheduled, not skipped.
How this workflow fails
Observed failure modes for this class of workflow. Design a check for each one before shipping, not after.
- judge disagrees with human reviewers
- metric rewards fluent but ungrounded text
- question set not representative
- score drift when the judge model changes
- retrieval fixed while generation is still wrong
Risk areas the evidence covers
- judge agreement
- groundedness
- retrieval relevance
- set representativeness
- version drift
Proving it works before you ship
Evaluation readiness: Documented — Context relevance, faithfulness, answer relevance and judge-agreement measures are defined; the question set and acceptance thresholds of the target system remain required.
Worked evaluation case: Judge calibration against human review
Score a sample of real questions with the automated judges, have reviewers label the same answers, and compare scores and rankings of two pipeline versions.
What to measure
- agreement between judge and reviewers
- context relevance on retrieved passages
- share of answer claims grounded in the context
- answer relevance to the question
- ranking of pipeline versions under judge and human
Governance and data handling
- Evaluation sets copy real questions and documents. Apply the same access, retention and provider rules as production data.
- Treat automated scores as estimates and keep a human-labelled sample to calibrate them.
Implementation notes
- Score retrieval and generation separately so a retrieval miss is not hidden by fluent text.
- Calibrate every automated judge against a human-labelled sample from your own system and re-check when the judge model changes.
What this blueprint does not establish
- The Ragas abstract does not name its metrics or list limitations, and the paper is a preprint.
- The ARES results cover eight knowledge-intensive tasks and still need human annotations at evaluation time.
- No question set, corpus, judge model or acceptance threshold is registered for a target deployment.
- No measured agreement between automated scores and human judgement on a target system is attached.
Source coverage: Documented — The Ragas paper supports evaluating several dimensions of a retrieval-augmented system, including retrieval of focused passages and faithful use of them, without relying on ground-truth human annotations. The ARES paper supports training lightweight judges on synthetic data, correcting them with a few hundred human annotations, and scoring context relevance, answer faithfulness and answer relevance. Neither shows that the scores track your users' judgement.
Sources read on 2026-11-20. Both papers predate current judge models; recalibrate with the models you use.
Sources
- Ragas: Automated Evaluation of Retrieval Augmented Generation Es, James, Espinosa-Anke and Schockaert (arXiv 2309.15217) · primary-research · accessed 2026-11-20
- ARES: An Automated Evaluation Framework for Retrieval-Augmented Generation Systems Saad-Falcon, Khattab, Potts and Zaharia (arXiv 2311.09476, NAACL 2024) · primary-research · accessed 2026-11-20
Candidate models and benchmarks
Candidate models with published references, the providers behind them, and the benchmarks whose task shape bears on this workflow are on the RAG Evaluation workflow reference. This blueprint covers implementation; that page covers selection.
Continue your research
Use these connected ModelRefs sections to compare alternatives, inspect implementation paths, and review the evidence and governance boundaries relevant to RAG Evaluation — Architecture Blueprint.