πŸ“„ 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?",
    prediction_field="user response",
    context_fields=[
        "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

Explanation about CriteriaWithOptionsΒΆ

Criteria used by DirectLLMJudge to run evaluations.

Explanation about CriteriaOptionΒΆ

A criteria option.

Read more about catalog usage here.