π Reference Document FaithfulnessΒΆ
metrics.llm_as_judge.direct.criteria.reference_document_faithfulness
CriteriaWithOptions(
name="reference_document_faithfulness",
description="Is the response faithful according to reference document?",
options=[
CriteriaOption(
name="Yes",
description="The response is faithful according to reference document.",
),
CriteriaOption(
name="No",
description="The response is not faithful according to reference document.",
),
],
option_map={
"Yes": 1.0,
"No": 0.0,
},
)
[source]from unitxt.llm_as_judge_constants import CriteriaOption
Read more about catalog usage here.