Align task_navigation_efficiency override with SDK 1.16.7 input aliases#5022
Draft
Copilot wants to merge 2 commits into
Draft
Align task_navigation_efficiency override with SDK 1.16.7 input aliases#5022Copilot wants to merge 2 commits into
Copilot wants to merge 2 commits into
Conversation
Agent-Logs-Url: https://github.com/Azure/azureml-assets/sessions/b2134de4-e63e-4533-b4e2-50a5d2b3dae6 Co-authored-by: m7md7sien <16615690+m7md7sien@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Port evaluator logic improvements from SDK 1.12.0 to 1.16.7
Align task_navigation_efficiency override with SDK 1.16.7 input aliases
May 11, 2026
|
This pull request has been marked as stale because it has been inactive for 14 days. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR complements the parallel version-bump/cleanup work by porting the remaining evaluator behavior gap found in kept builtin overrides after comparing them against
azure-ai-evaluation1.16.7. The only concrete SDK→assets delta in scope wastask_navigation_efficiency, whose assets override still requiredactions/expected_actionsinstead of also accepting the SDK'sresponse/ground_truth.What changed
assets/evaluators/builtin/task_navigation_efficiency/evaluator/_task_navigation_efficiency.pyto accept SDK-compatible aliases:response→actionsground_truth→expected_actionsBehavioral coverage
assets/evaluators/tests/test_evaluators_behavior/test_task_navigation_efficiency_evaluator_behavior.pyto cover:response/ground_truthinputsresponse/ground_truthinputsScope
azure-ai-evaluationversion pin changes.Original prompt
Context
Azure/azure-sdk-for-pythonrecently publishedazure-ai-evaluation==1.16.7(2026-05-11). Between the version this repo currently consumes (1.11.1/~=1.0.1) and the new1.16.7, the SDK gained many evaluator-logic fixes and features (see CHANGELOG entries for 1.12.0, 1.13.0–1.13.7, 1.14.0, 1.15.0–1.15.2, 1.16.0–1.16.7 athttps://github.com/Azure/azure-sdk-for-python/blob/main/sdk/evaluation/azure-ai-evaluation/CHANGELOG.md).A separate PR (#TBD by the user, see the version-bump PR opened in parallel) handles the version bump and removal of redundant asset overrides. This PR is the complement: for any evaluator override that is still kept in
assets/evaluators/builtin/after the cleanup (i.e. cases where assets has its own implementation), this PR ports the SDK 1.12.0→1.16.7 evaluator-logic improvements that have NOT been reflected in the assets override yet.Goal
Open ONE PR that:
assets/evaluators/builtin/<name>/evaluator/:Azure/azure-sdk-for-python@main:sdk/evaluation/azure-ai-evaluation/azure/ai/evaluation/_evaluators/_<name>/.is_reasoning_modelparameter onCoherenceEvaluator/FluencyEvaluator/SimilarityEvaluator/GroundednessEvaluator/RetrievalEvaluator/RelevanceEvaluatorfrom 1.12.0; standardized output schema from 1.13.0; agent-evaluator string-input support from 1.16.1; TaskAdherence + Relevance variance/perf improvements from 1.10.0; F1 score fix from 1.13.7; deflection_rate inverse-metric fix from 1.16.7; etc.).Azure/azure-sdk-for-python).assets/evaluators/builtin/tests/andassets/evaluators/tests/to cover the ported behavior.azure-ai-evaluationversion pins — that is the responsibility of the parallel version-bump PR.How to enumerate gaps
For each
assets/evaluators/builtin/<name>/evaluator/_<name>.py, fetch the equivalent SDK file and produce a structured gap list with three buckets:SDK-has, assets-missing→ port these into this PR.assets-has, SDK-missing→ leave alone (handled by the SDK PR).equivalent→ no-op.Concrete evaluators known to be overridden in assets and likely needing porting work:
coherence,customer_satisfaction,task_completion,task_adherence,relevance,fluency,groundedness,intent_resolution,retrieval,similarity,response_completeness,tool_call_accuracy,tool_call_success,tool_input_accuracy,tool_output_utilization,tool_selection,task_navigation_efficiency,ungrounded_attributes,code_vulnerability,protected_material,indirect_attack,deflection_rate,hate_unfairness,self_harm,sexual,violence,document_retrieval,f1_score,bleu_score,gleu_score,meteor_score,rouge_score,prohibited_actions,sensitive_data_leakage,quality_grader,python_grader,score_model,label_model,string_check,regex_match,bbeh,ifeval,text_similarity.Focus areas (from CHANGELOG diff 1.12.0 → 1.16.7) most likely to require porting into asset overrides:
{name}(score),gpt_{name}(alias),{name}_result(pass/fail),{name}_reason,{name}_threshold,{name}_prompt_tokens,{name}_completion_tokens,{name}_total_tokens,{name}_finish_reason,{name}_model,{name}_sample_input,{name}_sample_output. Many asset overrides predate this and emit onlygpt_<name>/<name>_reason.is_reasoning_modelparameter on Coherence/Fluency/Similarity/Groundedness/Retrieval/Relevance.tool_definitionsas optional._TaskNavigationEfficiencyEvaluatoraccepts JSON-stringifiedresponse/ground_truth;deflection_rateinverse-metric pass/fail fix;task_adherencered-team scoringscenario=redteam.is_reasoning_model+credential.Test strategy
assets/evaluators/builtin/tests/for each ported change. Assertions should match the SDK 1.16.7 behavior (which is now the source of truth).pytest assets/evaluators/builtin/testsand `pytest assets/evaluators/...This pull request was created from Copilot chat.