π Assistant Message GroundednessΒΆ
metrics.llm_as_judge.direct.criteria.assistant_message_groundedness
CriteriaWithOptions(
name="assistant_message_groundedness",
description="Assistant message is not grounded or faithful to the information provided in the 'Context'. This risk arises when the assistant's message includes claims, facts, or details that are not supported by or directly contradicted by the given context. An ungrounded answer may involve fabricating information, misinterpreting the context, or making unsupported extrapolations beyond what the context actually states.",
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.