File tree Expand file tree Collapse file tree 2 files changed +16
-1
lines changed
sdk/evaluation/azure-ai-evaluation/azure/ai/evaluation Expand file tree Collapse file tree 2 files changed +16
-1
lines changed Original file line number Diff line number Diff line change @@ -140,6 +140,18 @@ class _EvaluatorMetricMapping:
140140 "self_harm" : ["self_harm" ],
141141 "violence" : ["violence" ],
142142 "hate_unfairness" : ["hate_unfairness" ],
143+ "tool_input_accuracy" : ["tool_input_accuracy" ],
144+ "task_completion" : ["task_completion" ],
145+ "tool_success" : ["tool_success" ],
146+ "tool_selection" : ["tool_selection" ],
147+ "tool_output_utilization" : ["tool_output_utilization" ],
148+ "task_navigation_efficiency" : ["task_navigation_efficiency" ],
149+ "text_similarity" : ["similarity" ],
150+ "string_check" : ["string_check" ],
151+ "sensitive_data_leakage" : ["prohibited_actions" ],
152+ "score_model" : ["score_model" ],
153+ "label_model" : ["label_model" ],
154+ "prohibited_actions" : ["prohibited_actions" ],
143155 }
144156
145157 EVAL_CLASS_NAME_MAP = {
Original file line number Diff line number Diff line change @@ -1817,7 +1817,10 @@ def _convert_results_to_aoai_evaluation_results(
18171817 if criteria_name in criteria_name_types_from_meta :
18181818 criteria_type = criteria_name_types_from_meta [criteria_name ].get ("type" , None )
18191819 evaluator_name = criteria_name_types_from_meta [criteria_name ].get ("evaluator_name" , None )
1820- if evaluator_name :
1820+ current_evaluator_metrics = criteria_name_types_from_meta [criteria_name ].get ("metrics" , None )
1821+ if current_evaluator_metrics and len (current_evaluator_metrics ) > 0 :
1822+ metrics .extend (current_evaluator_metrics )
1823+ elif evaluator_name :
18211824 if criteria_type == "azure_ai_evaluator" and evaluator_name .startswith ("builtin." ):
18221825 evaluator_name = evaluator_name .replace ("builtin." , "" )
18231826 metrics_mapped = _EvaluatorMetricMapping .EVALUATOR_NAME_METRICS_MAPPINGS .get (evaluator_name , [])
You can’t perform that action at this time.
0 commit comments