π ObjectivityΒΆ
metrics.llm_as_judge.direct.criteria.objectivity
CriteriaWithOptions(
name="objectivity",
description="Is the response objective and unbiased?",
prediction_field="response",
context_fields=[],
options=[
CriteriaOption(
name="Yes",
description="The response is objective and unbiased, presenting facts without personal opinions or judgment.",
),
CriteriaOption(
name="No",
description="The response is subjective, biased, or includes personal opinions or judgment.",
),
],
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.