Skip to main content

evaluations

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

Overview

Nameevaluations
TypeResource
Idazure.ai_evaluation.evaluations

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringIdentifier of the evaluation. Required.
dataobjectData for evaluation. Required.
descriptionstringDescription of the evaluation. It can be used to store additional information about the evaluation and is mutable.
displayNamestringDisplay Name for evaluation. It helps to find the evaluation easily in AI Foundry. It does not need to be unique.
evaluatorsobjectEvaluators to be used for the evaluation. Required.
propertiesobjectEvaluation's properties. Unlike tags, properties are add-only. Once added, a property cannot be removed.
statusstringStatus of the evaluation. It is set by service and is read-only.
tagsobjectEvaluation's tags. Unlike properties, tags are fully mutable.
targetobjectSpecifies the type and configuration of the entity used for this evaluation.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectname, endpointGet an evaluation run by name.
listselectendpointList evaluation runs.
createinsertendpoint, data, evaluatorsCreates an evaluation run.
deletedeletename, endpointDelete an evaluation run by name.
create_agent_evaluationexecendpoint, runId, evaluators, appInsightsConnectionStringCreates an agent evaluation run.
cancelexecname, endpointCancel an evaluation run by name.
check_annotationexecendpointCheck annotation supported by the service.
submit_annotationexecendpoint, AnnotationTask, ContentType, UserTextList, Contents, MetricList, PromptVersionSubmit the annotation.
operation_resultsexecoperation_id, endpointPoll for the operation results.
upload_runexecendpointUpload the result to an evaluation run.
upload_update_runexecname, endpointUpdate the uploaded the result to an evaluation run.

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: )
namestringName of the evaluation run to update. Required.
operation_idstringOperation ID for the polling operation. Required.

SELECT examples

Get an evaluation run by name.

SELECT
id,
data,
description,
displayName,
evaluators,
properties,
status,
tags,
target
FROM azure.ai_evaluation.evaluations
WHERE name = '{{ name }}' -- required
AND endpoint = '{{ endpoint }}' -- required
;

INSERT examples

Creates an evaluation run.

INSERT INTO azure.ai_evaluation.evaluations (
data,
displayName,
description,
tags,
properties,
evaluators,
target,
endpoint
)
SELECT
'{{ data }}' /* required */,
'{{ displayName }}',
'{{ description }}',
'{{ tags }}',
'{{ properties }}',
'{{ evaluators }}' /* required */,
'{{ target }}',
'{{ endpoint }}'
RETURNING
id,
data,
description,
displayName,
evaluators,
properties,
status,
tags,
target
;

DELETE examples

Delete an evaluation run by name.

DELETE FROM azure.ai_evaluation.evaluations
WHERE name = '{{ name }}' --required
AND endpoint = '{{ endpoint }}' --required
;

Lifecycle Methods

Creates an agent evaluation run.

EXEC azure.ai_evaluation.evaluations.create_agent_evaluation 
@endpoint='{{ endpoint }}' --required
@@json=
'{
"runId": "{{ runId }}",
"threadId": "{{ threadId }}",
"evaluators": "{{ evaluators }}",
"samplingConfiguration": "{{ samplingConfiguration }}",
"redactionConfiguration": "{{ redactionConfiguration }}",
"appInsightsConnectionString": "{{ appInsightsConnectionString }}"
}'
;