πŸ“„ NaturalnessΒΆ

metrics.llm_as_judge.direct.criteria.naturalness

CriteriaWithOptions(
    name="naturalness",
    description="Is the user response natural?",
    options=[
        CriteriaOption(
            name="Yes",
            description="The user response is natural.",
        ),
        CriteriaOption(
            name="No",
            description="The user response isn't natural.",
        ),
    ],
    option_map={
        "Yes": 1.0,
        "No": 0.0,
    },
)
[source]

from unitxt.llm_as_judge_constants import CriteriaOption

Read more about catalog usage here.