Skip to content

Evaluator Identifier for Relevance and Similarity are incorrect #40824

Open
@m-gheini

Description

@m-gheini
  • Package Name: azure-ai-evaluation
  • Package Version: 1.5.0
  • Operating System: Windows
  • Python Version: 3.12.10

Describe the bug
For defining evaluators within cloud evaluation, we need to access evaluators by their ids. Right now id for Similarity and Relevance are incorrect and are not pointing to latest version of Asset ID used in Azure Foundry Evaluators. This will cause error during evaluation and not seeing results for these evaluators on evaluation tab on Foundry.

To Reproduce

Import Built in Evaluators:

from azure.ai.evaluation import (
    RelevanceEvaluator,
    SimilarityEvaluator,
)

Create a cloud evaluation with evaluators as below:

evaluators={
        "relevance": EvaluatorConfiguration(
            id=RelevanceEvaluator.id,
            init_params={
                "model_config": model_config
            }
        ),
        "similarity": EvaluatorConfiguration(
            id=SimilarityEvaluator.id,
            init_params={
                "model_config": model_config
            }
        )
    }

Expected behavior
Access built in evaluator by id for latest version and run evaluator. Also get results in Foundry Evaluation tab.

Additional context
There is already a PR open for Similarity Evaluator #40804

Metadata

Metadata

Assignees

Labels

EvaluationIssues related to the client library for Azure AI EvaluationService AttentionWorkflow: This issue is responsible by Azure service team.customer-reportedIssues that are reported by GitHub users external to the Azure organization.questionThe issue doesn't require a change to the product in order to be resolved. Most issues start as that

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions