LayaEval logoLayaEval/RAG Checks/Retrieval Completeness
RAG-005RAG · Findinglayaeval.RetrievalCompleteness

Retrieval Completeness

Did search find all the big pieces of evidence?

EVIDENCE FOUNDRoom typesPricesReviewsLocationNothing big missing
Simulation state:
When it passes

Nothing big is missing.

Threshold satisfied: evaluation score >= 3.0.

When it fails

Key evidence is missing.

Violation detected: execution flagged for human review or fallback routing.

SDK Specification

ParameterValueDescription
ClassRetrievalCompletenessPython evaluator class in layaeval
Required Fields"query", "retrieved_context"Arguments expected in the call signature
Default Threshold>= 3.0Passes when quality score is at or above this value
CategoryRAG EvaluationFinding (Did search bring back the right pages?)

Python Example

pip install layaeval
retrieval-completeness.py
1from layaeval import RetrievalCompleteness
2
3metric = RetrievalCompleteness(threshold=3.0) # passes at or above 3.0
4
5res = metric(
6 query="What is the capital of France?",
7 retrieved_context="Paris is the capital of France, with 2.1M residents.",
8)
9
10print(res.passed, res.value, res.confidence)

Related RAG Checks

Other checks in Finding

View all 42 checks →