Skip to content

Commit 47ab05a

Browse files
jsondaicopybara-github
authored andcommitted
chore: Fix the predefined metric name for multi_turn_safety
PiperOrigin-RevId: 764003455
1 parent e1745d7 commit 47ab05a

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

vertexai/evaluation/metrics/metric_prompt_template_examples.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ class Pointwise:
145145
metric=constants.Metric.MULTI_TURN_CHAT_QUALITY,
146146
metric_prompt_template=_default_templates.MULTI_TURN_CHAT_QUALITY_PROMPT_TEMPLATE,
147147
)
148-
MULTI_TURN_SAFETY_QUALITY = pointwise_metric.PointwiseMetric(
148+
MULTI_TURN_SAFETY = pointwise_metric.PointwiseMetric(
149149
metric=constants.Metric.MULTI_TURN_SAFETY,
150150
metric_prompt_template=_default_templates.MULTI_TURN_SAFETY_PROMPT_TEMPLATE,
151151
)
@@ -193,7 +193,7 @@ class Pairwise:
193193
metric=constants.Metric.PAIRWISE_MULTI_TURN_CHAT_QUALITY,
194194
metric_prompt_template=_default_templates.PAIRWISE_MULTI_TURN_CHAT_QUALITY_PROMPT_TEMPLATE,
195195
)
196-
MULTI_TURN_SAFETY_QUALITY = pairwise_metric.PairwiseMetric(
196+
MULTI_TURN_SAFETY = pairwise_metric.PairwiseMetric(
197197
metric=constants.Metric.PAIRWISE_MULTI_TURN_SAFETY,
198198
metric_prompt_template=_default_templates.PAIRWISE_MULTI_TURN_SAFETY_PROMPT_TEMPLATE,
199199
)

vertexai/preview/evaluation/metrics/metric_prompt_template_examples.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ class Pointwise:
143143
metric=constants.Metric.MULTI_TURN_CHAT_QUALITY,
144144
metric_prompt_template=_default_templates.MULTI_TURN_CHAT_QUALITY_PROMPT_TEMPLATE,
145145
)
146-
MULTI_TURN_SAFETY_QUALITY = pointwise_metric.PointwiseMetric(
146+
MULTI_TURN_SAFETY = pointwise_metric.PointwiseMetric(
147147
metric=constants.Metric.MULTI_TURN_SAFETY,
148148
metric_prompt_template=_default_templates.MULTI_TURN_SAFETY_PROMPT_TEMPLATE,
149149
)
@@ -191,7 +191,7 @@ class Pairwise:
191191
metric=constants.Metric.PAIRWISE_MULTI_TURN_CHAT_QUALITY,
192192
metric_prompt_template=_default_templates.PAIRWISE_MULTI_TURN_CHAT_QUALITY_PROMPT_TEMPLATE,
193193
)
194-
MULTI_TURN_SAFETY_QUALITY = pairwise_metric.PairwiseMetric(
194+
MULTI_TURN_SAFETY = pairwise_metric.PairwiseMetric(
195195
metric=constants.Metric.PAIRWISE_MULTI_TURN_SAFETY,
196196
metric_prompt_template=_default_templates.PAIRWISE_MULTI_TURN_SAFETY_PROMPT_TEMPLATE,
197197
)

0 commit comments

Comments
 (0)