RAG-005RAG · Findinglayaeval.RetrievalCompleteness
Retrieval Completeness
Did search find all the big pieces of evidence?
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
| Parameter | Value | Description |
|---|---|---|
| Class | RetrievalCompleteness | Python evaluator class in layaeval |
| Required Fields | "query", "retrieved_context" | Arguments expected in the call signature |
| Default Threshold | >= 3.0 | Passes when quality score is at or above this value |
| Category | RAG Evaluation | Finding (Did search bring back the right pages?) |
Python Example
retrieval-completeness.py
1from layaeval import RetrievalCompleteness23metric = RetrievalCompleteness(threshold=3.0) # passes at or above 3.045res = metric(6 query="What is the capital of France?",7 retrieved_context="Paris is the capital of France, with 2.1M residents.",8)910print(res.passed, res.value, res.confidence)
Related RAG Checks