RAG-016RAG · Citationslayaeval.CitationCompleteness
Citation Completeness
Does every important claim have a citation?
Simulation state:
When it passes
All claims are cited.
Threshold satisfied: evaluation score >= 3.0.
When it fails
A claim has no citation.
Violation detected: execution flagged for human review or fallback routing.
SDK Specification
| Parameter | Value | Description |
|---|---|---|
| Class | CitationCompleteness | Python evaluator class in layaeval |
| Required Fields | "response", "citations" | Arguments expected in the call signature |
| Default Threshold | >= 3.0 | Passes when quality score is at or above this value |
| Category | RAG Evaluation | Citations (Do the little [1] tags point to the right place?) |
Python Example
citation-completeness.py
1from layaeval import CitationCompleteness23metric = CitationCompleteness(threshold=3.0) # passes at or above 3.045res = metric(6 response="Paris is the capital of France.",7 citations=["[1]"],8)910print(res.passed, res.value, res.confidence)
Related RAG Checks