πŸ“„ Assistant Message Answer RelevanceΒΆ

metrics.llm_as_judge.direct.criteria.assistant_message_answer_relevance

CriteriaWithOptions(
    name="assistant_message_answer_relevance",
    description="Assistant message fails to address or properly respond to the User's input. This includes providing off-topic information, misinterpreting the query, or omitting crucial details requested by the User. An irrelevant answer may contain factually correct information but still fail to meet the User's specific needs or answer their intended question.",
    prediction_field="assistant message",
    context_fields=[
        "user message",
        "context",
    ],
    options=[
        CriteriaOption(
            name="Yes",
            description="",
        ),
        CriteriaOption(
            name="No",
            description="",
        ),
    ],
    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.