RAG-018RAG · Staying truthfullayaeval.ClaimSupport

Claim Support

Is this single claim backed by the evidence?

EVIDENCECLAIMLumière is $180It costs $180Claim is backed
Simulation state:
When it passes

Backed.

Threshold satisfied: evaluation score >= 0.50.

When it fails

Not backed.

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

SDK Specification

ParameterValueDescription
ClassClaimSupportPython evaluator class in layaeval
Required Fields"claim", "evidence"Arguments expected in the call signature
Default Threshold>= 0.50Passes when quality score is at or above this value
CategoryRAG EvaluationStaying truthful (Does every line come from the pages, with nothing made up?)

Python Example

pip install layaeval
claim-support.py
1from layaeval import ClaimSupport
2
3metric = ClaimSupport(threshold=0.50) # passes at or above 0.50
4
5res = metric(
6 claim="Paris is the capital of France.",
7 evidence="Paris is the capital and largest city of France.",
8)
9
10print(res.passed, res.value, res.confidence)

Related RAG Checks

Other checks in Staying truthful

View all 42 checks →