π Email StructureΒΆ
metrics.llm_as_judge.direct.criteria.email_structure
CriteriaWithOptions(
name="email_structure",
description="Does the email response have a clear and logical structure?",
prediction_field="email response",
context_fields=[],
options=[
CriteriaOption(
name="Yes",
description="The response has a clear, logical structure with well-organized ideas.",
),
CriteriaOption(
name="No",
description="The response lacks a clear structure, and ideas are poorly organized.",
),
],
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.