π Professional ToneΒΆ
metrics.llm_as_judge.direct.criteria.professional_tone
CriteriaWithOptions(
name="professional_tone",
description="Is the tone of the email response professional?",
options=[
CriteriaOption(
name="Yes",
description="The tone of the email in the response is professional, respectful, and appropriate for formal communication.",
),
CriteriaOption(
name="No",
description="The tone of the email in the response is not professional, it may be too casual, rude, or inappropriate.",
),
],
option_map={
"Yes": 1.0,
"No": 0.0,
},
)
[source]from unitxt.llm_as_judge_constants import CriteriaOption
Read more about catalog usage here.