Skip to content

Commit 1f0488c

Browse files
authored
Updating evaluator id to new format (Azure#42273)
1 parent 6aec05b commit 1f0488c

File tree

27 files changed

+29
-26
lines changed

27 files changed

+29
-26
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
@@ -54,7 +54,7 @@ class BleuScoreEvaluator(EvaluatorBase):
5454
:caption: Initialize with threshold and call an BleuScoreEvaluator.
5555
"""
5656

57-
id = "azureml://registries/azureml/models/Bleu-Score-Evaluator/versions/3"
57+
id = "azureai://built-in/evaluators/bleu_score"
5858
"""Evaluator identifier, experimental and to be used only with evaluation in cloud."""
5959

6060
def __init__(self, *, threshold=0.5):

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ class CodeVulnerabilityEvaluator(RaiServiceEvaluatorBase[Union[str, bool]]):
7979
for the code vulnerability will be "code_vulnerability_label".
8080
"""
8181

82-
id = "code_vulnerability"
82+
id = "azureai://built-in/evaluators/code_vulnerability"
8383
"""Evaluator identifier, experimental and to be used only with evaluation in cloud."""
8484
_OPTIONAL_PARAMS = ["query"]
8585

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
@@ -62,7 +62,7 @@ class CoherenceEvaluator(PromptyEvaluatorBase[Union[str, float]]):
6262
_PROMPTY_FILE = "coherence.prompty"
6363
_RESULT_KEY = "coherence"
6464

65-
id = "azureml://registries/azureml/models/Coherence-Evaluator/versions/4"
65+
id = "azureai://built-in/evaluators/coherence"
6666
"""Evaluator identifier, experimental and to be used only with evaluation in cloud."""
6767

6868
@override

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ class ContentSafetyEvaluator(MultiEvaluatorBase[Union[str, float]]):
6868
:caption: Initialize with threshold and call a ContentSafetyEvaluator with a query and response.
6969
"""
7070

71-
id = "content_safety"
71+
id = "azureai://built-in/evaluators/content_safety"
7272
"""Evaluator identifier, experimental and to be used only with evaluation in cloud."""
7373
_OPTIONAL_PARAMS = ["query"]
7474

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
@@ -80,7 +80,7 @@ class HateUnfairnessEvaluator(RaiServiceEvaluatorBase[Union[str, float]]):
8080
:caption: Initialize with threshold and call a HateUnfairnessEvaluator with a query and response.
8181
"""
8282

83-
id = "azureml://registries/azureml/models/Hate-and-Unfairness-Evaluator/versions/4"
83+
id = "azureai://built-in/evaluators/hate_unfairness"
8484
"""Evaluator identifier, experimental and to be used only with evaluation in cloud."""
8585
_OPTIONAL_PARAMS = ["query"]
8686

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
@@ -65,7 +65,7 @@ class SelfHarmEvaluator(RaiServiceEvaluatorBase[Union[str, float]]):
6565
https://{resource_name}.services.ai.azure.com/api/projects/{project_name}.
6666
"""
6767

68-
id = "azureml://registries/azureml/models/Self-Harm-Related-Content-Evaluator/versions/3"
68+
id = "azureai://built-in/evaluators/self_harm"
6969
"""Evaluator identifier, experimental and to be used only with evaluation in cloud."""
7070
_OPTIONAL_PARAMS = ["query"]
7171

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
@@ -76,7 +76,7 @@ class SexualEvaluator(RaiServiceEvaluatorBase[Union[str, float]]):
7676
:caption: Initialize with threshold and call a SexualEvaluator.
7777
"""
7878

79-
id = "azureml://registries/azureml/models/Sexual-Content-Evaluator/versions/3"
79+
id = "azureai://built-in/evaluators/sexual"
8080
"""Evaluator identifier, experimental and to be used only with evaluation in cloud."""
8181
_OPTIONAL_PARAMS = ["query"]
8282

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
@@ -76,7 +76,7 @@ class ViolenceEvaluator(RaiServiceEvaluatorBase[Union[str, float]]):
7676
:caption: Initialize with threshold and call a ViolenceEvaluator.
7777
"""
7878

79-
id = "azureml://registries/azureml/models/Violent-Content-Evaluator/versions/3"
79+
id = "azureai://built-in/evaluators/violence"
8080
"""Evaluator identifier, experimental and to be used only with evaluation in cloud."""
8181
_OPTIONAL_PARAMS = ["query"]
8282

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,9 @@ class DocumentRetrievalEvaluator(EvaluatorBase):
4949
:caption: Initialize with threshold and call a DocumentRetrievalEvaluator.
5050
"""
5151

52+
id = "azureai://built-in/evaluators/document_retrieval"
53+
"""Evaluator identifier, experimental and to be used only with evaluation in cloud."""
54+
5255
def __init__(
5356
self,
5457
*,

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
@@ -58,7 +58,7 @@ class F1ScoreEvaluator(EvaluatorBase):
5858
:caption: Initialize with threshold and call an F1ScoreEvaluator.
5959
"""
6060

61-
id = "azureml://registries/azureml/models/F1Score-Evaluator/versions/3"
61+
id = "azureai://built-in/evaluators/f1_score"
6262
"""Evaluator identifier, experimental and to be used only with evaluation in cloud."""
6363

6464
def __init__(self, *, threshold=0.5):

0 commit comments

Comments
 (0)