Skip to content

Add per-line errors for batch evaluation#45304

Merged
posaninagendra merged 3 commits intomainfrom
selshafey/fix_batch_eval
Feb 23, 2026
Merged

Add per-line errors for batch evaluation#45304
posaninagendra merged 3 commits intomainfrom
selshafey/fix_batch_eval

Conversation

@salma-elshafey
Copy link
Contributor

Description

Please add an informative description that covers that changes made by the pull request and link all relevant issues.

If an SDK is being regenerated based on a new API spec, a link to the pull request containing these API spec changes should be included above.

All SDK Contribution checklist:

  • The pull request does not introduce [breaking changes]
  • CHANGELOG is updated for new features, bug fixes or other significant changes.
  • I have read the contribution guidelines.

General Guidelines and Best Practices

  • Title of the pull request is clear and informative.
  • There are a small number of commits, each of which have an informative message. This means that previously merged commits do not appear in the history of the PR. For more information on cleaning up the commits in your PR, see this page.

Testing Guidelines

  • Pull request includes test coverage for the included changes.

Copilot AI review requested due to automatic review settings February 22, 2026 23:58
@salma-elshafey salma-elshafey requested a review from a team as a code owner February 22, 2026 23:58
@github-actions github-actions bot added the Evaluation Issues related to the client library for Azure AI Evaluation label Feb 22, 2026
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds support for reporting batch-evaluation failures as per-row errors when converting results into the AOAI evaluation-results format, preventing successful rows from being stamped with unrelated batch-level errors.

Changes:

  • Pass row_idx into _add_error_summaries so error stamping can be row-aware.
  • Extend _add_error_summaries to prefer per_line_errors[row_idx] (and skip stamping when the row has no per-line error).
  • Add collection of per_line_errors in the batch run submitter’s get_run_summary().

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.

File Description
sdk/evaluation/azure-ai-evaluation/azure/ai/evaluation/_evaluate/_evaluate.py Makes error summary generation row-aware and consumes optional per-line errors.
sdk/evaluation/azure-ai-evaluation/azure/ai/evaluation/_evaluate/_batch_run/_run_submitter_client.py Adds per-line error extraction from batch run details into the run summary.

@posaninagendra posaninagendra enabled auto-merge (squash) February 23, 2026 05:35
@posaninagendra posaninagendra merged commit e02be22 into main Feb 23, 2026
21 checks passed
@posaninagendra posaninagendra deleted the selshafey/fix_batch_eval branch February 23, 2026 06:05
kdestin pushed a commit that referenced this pull request Feb 23, 2026
* add per line errors in evaluation

* black

---------

Co-authored-by: Nagendra Posani <naposani@microsoft.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Evaluation Issues related to the client library for Azure AI Evaluation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants