RAG-016RAG · Citationslayaeval.CitationCompleteness

Citation Completeness

Does every important claim have a citation?

ANSWERSOURCES[1] Hotel price list[2] Paris city mapLumière is $1801It's near the Louvre2Every claim is cited
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

ParameterValueDescription
ClassCitationCompletenessPython evaluator class in layaeval
Required Fields"response", "citations"Arguments expected in the call signature
Default Threshold>= 3.0Passes when quality score is at or above this value
CategoryRAG EvaluationCitations (Do the little [1] tags point to the right place?)

Python Example

pip install layaeval
citation-completeness.py
1from layaeval import CitationCompleteness
2
3metric = CitationCompleteness(threshold=3.0) # passes at or above 3.0
4
5res = metric(
6 response="Paris is the capital of France.",
7 citations=["[1]"],
8)
9
10print(res.passed, res.value, res.confidence)

Related RAG Checks

Other checks in Citations

View all 42 checks →