Skip to content

Commit 5df5807

Browse files
authored
Add evaluator ids (Azure#38369)
1 parent 57efa87 commit 5df5807

File tree

19 files changed

+18
-89
lines changed

19 files changed

+18
-89
lines changed

sdk/evaluation/azure-ai-evaluation/azure/ai/evaluation/_evaluators/_bleu/_bleu.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ class BleuScoreEvaluator:
4747
:caption: Initialize and call an BleuScoreEvaluator.
4848
"""
4949

50-
id = "bleu"
50+
id = "azureml://registries/azureml/models/Bleu-Score-Evaluator/versions/3"
5151
"""Evaluator identifier, experimental and to be used only with evaluation in cloud."""
5252

5353
def __init__(self):

sdk/evaluation/azure-ai-evaluation/azure/ai/evaluation/_evaluators/_coherence/_coherence.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ class CoherenceEvaluator(PromptyEvaluatorBase[Union[str, float]]):
4141
_PROMPTY_FILE = "coherence.prompty"
4242
_RESULT_KEY = "coherence"
4343

44-
id = "coherence"
44+
id = "azureml://registries/azureml/models/Coherence-Evaluator/versions/4"
4545
"""Evaluator identifier, experimental and to be used only with evaluation in cloud."""
4646

4747
@override

sdk/evaluation/azure-ai-evaluation/azure/ai/evaluation/_evaluators/_content_safety/_hate_unfairness.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ class HateUnfairnessEvaluator(RaiServiceEvaluatorBase[Union[str, float]]):
5858
:caption: Initialize and call a HateUnfairnessEvaluator.
5959
"""
6060

61-
id = "hate_unfairness"
61+
id = "azureml://registries/azureml/models/Hate-and-Unfairness-Evaluator/versions/4"
6262
"""Evaluator identifier, experimental and to be used only with evaluation in cloud."""
6363

6464
@override

sdk/evaluation/azure-ai-evaluation/azure/ai/evaluation/_evaluators/_content_safety/_self_harm.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ class SelfHarmEvaluator(RaiServiceEvaluatorBase[Union[str, float]]):
5252
:caption: Initialize and call a SelfHarmEvaluator.
5353
"""
5454

55-
id = "self_harm"
55+
id = "azureml://registries/azureml/models/Self-Harm-Related-Content-Evaluator/versions/3"
5656
"""Evaluator identifier, experimental and to be used only with evaluation in cloud."""
5757

5858
@override

sdk/evaluation/azure-ai-evaluation/azure/ai/evaluation/_evaluators/_content_safety/_sexual.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ class SexualEvaluator(RaiServiceEvaluatorBase[Union[str, float]]):
5454
:caption: Initialize and call a SexualEvaluator.
5555
"""
5656

57-
id = "sexual"
57+
id = "azureml://registries/azureml/models/Sexual-Content-Evaluator/versions/3"
5858
"""Evaluator identifier, experimental and to be used only with evaluation in cloud."""
5959

6060
@override

sdk/evaluation/azure-ai-evaluation/azure/ai/evaluation/_evaluators/_content_safety/_violence.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ class ViolenceEvaluator(RaiServiceEvaluatorBase[Union[str, float]]):
5454
:caption: Initialize and call a ViolenceEvaluator.
5555
"""
5656

57-
id = "violence"
57+
id = "azureml://registries/azureml/models/Violent-Content-Evaluator/versions/3"
5858
"""Evaluator identifier, experimental and to be used only with evaluation in cloud."""
5959

6060
@override

sdk/evaluation/azure-ai-evaluation/azure/ai/evaluation/_evaluators/_f1_score/_f1_score.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ class F1ScoreEvaluator:
131131
:caption: Initialize and call an F1ScoreEvaluator.
132132
"""
133133

134-
id = "f1_score"
134+
id = "azureml://registries/azureml/models/F1Score-Evaluator/versions/3"
135135
"""Evaluator identifier, experimental and to be used only with evaluation in cloud."""
136136

137137
def __init__(self):

sdk/evaluation/azure-ai-evaluation/azure/ai/evaluation/_evaluators/_fluency/_fluency.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ class FluencyEvaluator(PromptyEvaluatorBase[Union[str, float]]):
4343
_PROMPTY_FILE = "fluency.prompty"
4444
_RESULT_KEY = "fluency"
4545

46-
id = "fluency"
46+
id = "azureml://registries/azureml/models/Fluency-Evaluator/versions/3"
4747
"""Evaluator identifier, experimental and to be used only with evaluation in cloud."""
4848

4949
@override

sdk/evaluation/azure-ai-evaluation/azure/ai/evaluation/_evaluators/_gleu/_gleu.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ class GleuScoreEvaluator:
4444
:caption: Initialize and call a GleuScoreEvaluator.
4545
"""
4646

47-
id = "gleu_score"
47+
id = "azureml://registries/azureml/models/Gleu-Score-Evaluator/versions/3"
4848
"""Evaluator identifier, experimental and to be used only with evaluation in cloud."""
4949

5050
def __init__(self):

sdk/evaluation/azure-ai-evaluation/azure/ai/evaluation/_evaluators/_groundedness/_groundedness.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ class GroundednessEvaluator(PromptyEvaluatorBase[Union[str, float]]):
5555
_RESULT_KEY = "groundedness"
5656
_OPTIONAL_PARAMS = ["query"]
5757

58-
id = "groundedness"
58+
id = "azureml://registries/azureml/models/Groundedness-Evaluator/versions/4"
5959
"""Evaluator identifier, experimental and to be used only with evaluation in cloud."""
6060

6161
@override

0 commit comments

Comments
 (0)