Skip to main content

evaluators

Creates, updates, deletes, gets or lists an evaluators resource.

Overview

Nameevaluators
TypeResource
Idazure.ai_evaluation.evaluators

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringAsset ID, a unique identifier for the asset.
namestringThe name of the resource. Required.
display_namestringDisplay Name for evaluator. It helps to find the evaluator easily in AI Foundry. It does not need to be unique.
categoriesarrayThe categories of the evaluator. Required.
created_atintegerCreation date/time of the evaluator. Required.
created_bystringCreator of the evaluator. Required.
definitionobjectDefinition of the evaluator. Required.
descriptionstringThe asset description text.
evaluator_typestringThe type of the evaluator. Required. Known values are: "builtin" and "custom". (builtin, custom)
metadataobjectMetadata about the evaluator.
modified_atintegerLast modified date/time of the evaluator. Required.
tagsobjectTag dictionary. Tags can be added, removed, and updated.
versionstringThe version of the resource. Required.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_evaluator_versionselectname, version, endpointGet the specific version of the EvaluatorVersion. The service returns 404 Not Found error if the EvaluatorVersion does not exist.
list_versionsselectname, endpointtype, limitList all versions of the given evaluator.
list_latest_versionsselectendpointtype, limitList the latest version of each evaluator.
create_evaluator_versionexecname, endpointCreate a new EvaluatorVersion with auto incremented version id.
delete_evaluator_versionexecname, version, endpointDelete the specific version of the EvaluatorVersion. The service returns 204 No Content if the EvaluatorVersion was deleted successfully or if the EvaluatorVersion does not exist.
update_evaluator_versionexecname, version, endpointUpdate an existing EvaluatorVersion with the given version id.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
endpointstringThe service endpoint host (no scheme), e.g. myaccount.table.cosmos.azure.com:443 - value of the client endpoint parameter. (default: )
namestringThe name of the resource. Required.
versionstringThe version of the EvaluatorVersion to update. Required.
limitintegerA limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 20. Default value is None.
typestringFilter evaluators by type. Possible values: 'all', 'custom', 'builtin'. Is one of the following types: Literal["builtin"], Literal["custom"], Literal["all"], str Default value is None.

SELECT examples

Get the specific version of the EvaluatorVersion. The service returns 404 Not Found error if the EvaluatorVersion does not exist.

SELECT
id,
name,
display_name,
categories,
created_at,
created_by,
definition,
description,
evaluator_type,
metadata,
modified_at,
tags,
version
FROM azure.ai_evaluation.evaluators
WHERE name = '{{ name }}' -- required
AND version = '{{ version }}' -- required
AND endpoint = '{{ endpoint }}' -- required
;

Lifecycle Methods

Create a new EvaluatorVersion with auto incremented version id.

EXEC azure.ai_evaluation.evaluators.create_evaluator_version 
@name='{{ name }}' --required,
@endpoint='{{ endpoint }}' --required
;