Evaluation layers
- Retrieval: did the system find the right evidence?
- Grounding: is the answer supported?
- Citation: can users verify claims?
- Safety: does it refuse unsupported questions?
- Operations: is it fast, affordable, and monitored?
Evaluation
RAG quality is not just answer fluency. It includes retrieval quality, source support, citations, refusal behavior, cost, latency, and maintainability.
Did the system find the evidence needed to answer?
Use labeled questions with expected source passages or expert-reviewed relevant documents.
Were the retrieved passages actually relevant?
Review top results, track irrelevant chunks, and compare before/after chunking or reranking changes.
Is the answer supported by the retrieved context?
Check generated claims against sources with human review and RAG-specific evaluation tools.
Can users verify important claims quickly?
Inspect whether citations point to the right source, page, section, or passage.
Does the system refuse or ask for clarification when evidence is missing?
Test ambiguous, adversarial, and out-of-scope questions.
Is the system fast, affordable, monitored, and maintainable?
Track latency, cost, error rates, trace coverage, data freshness, and update success.
Use the triad as a diagnostic model, not as a guarantee of truth. A system can be grounded in a knowledge base that is itself incomplete, stale, or incorrect.
Are the retrieved passages relevant to the user's question?
Low scores usually point to corpus, parsing, chunking, query, filtering, or ranking problems.
Is each important answer claim supported by the retrieved context?
Low scores usually point to noisy context, conflicting evidence, weak instructions, or unsupported generation.
Does the final response directly and usefully answer the original question?
Low scores can occur even when the answer is grounded, for example when it is evasive, incomplete, or overly verbose.
Start at the earliest failing stage. Improving the generator cannot repair a missing document or a damaged table.
Inspect: Inspect corpus coverage, ownership, dates, permissions, and superseded documents.
Improve: Curate sources before changing models or retrieval settings.
Inspect: Compare parsed chunks with the original document visually.
Improve: Use format-aware parsing, structure-aware chunks, and preserved provenance.
Inspect: Evaluate expected-source recall and relevance of each top result.
Improve: Tune chunking, hybrid search, metadata filters, query rewriting, and reranking.
Inspect: Log the exact context sent to the model.
Improve: Deduplicate, prioritize authority and freshness, compress carefully, and expose conflicts.
Inspect: Break the answer into claims and map each claim to supporting context.
Improve: Improve instructions, require claim support, reduce noise, or use a better-suited model.
Inspect: Test citation correctness, granularity, links, page numbers, and source snippets.
Improve: Preserve provenance end to end and design citations as a verification workflow.
A useful evaluation set should include normal questions, hard questions, exact-reference questions, ambiguous questions, and questions the system should not answer.