πŸ“„ Information From ReferenceΒΆ

metrics.llm_as_judge.direct.criteria.information_from_reference

CriteriaWithOptions(
    name="information_from_reference",
    description="Does the user response contain information from the reference document?",
    options=[
        CriteriaOption(
            name="Yes",
            description="The user response contains information from the reference document.",
        ),
        CriteriaOption(
            name="No",
            description="The user response doesn't contain information from the 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.