Skip to content

Conversation

@ahibrahimm
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.

@ahibrahimm ahibrahimm requested a review from a team as a code owner November 11, 2025 00:09
Copilot AI review requested due to automatic review settings November 11, 2025 00:09
@github-actions github-actions bot added the Evaluation Issues related to the client library for Azure AI Evaluation label Nov 11, 2025
Copilot finished reviewing on behalf of ahibrahimm November 11, 2025 00:11
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 pull request refactors the GroundednessEvaluator class to improve schema validation for context extraction. The changes include code organization improvements, the introduction of a new helper method for context validation, and enhanced error handling for edge cases.

Key changes:

  • Extracted context validation logic into a dedicated _validate_context() method to improve code reusability
  • Added _is_single_entry() method to determine if inputs represent single entries
  • Removed redundant instance variable assignments in favor of using parent class properties directly

Copy link
Contributor

@ashaabansoliman ashaabansoliman left a comment

Choose a reason for hiding this comment

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

Approving with a known issue only in case of concurrency as explained in the comment, which is kinda corner case.
Another PR should follow to fix the concurrency issue

Copy link
Contributor

@ashaabansoliman ashaabansoliman left a comment

Choose a reason for hiding this comment

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

Approving with a known issue only in case of concurrency as explained in the comment, which is kinda corner case.
Another PR should follow to fix the concurrency issue

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