Skip to main content

beta_evaluators

Creates, updates, deletes, gets or lists a beta_evaluators resource.

Overview

Namebeta_evaluators
TypeResource
Idazure.ai_projects.beta_evaluators

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
blobReferenceobjectCredential info to access the storage account. Required.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_credentialsselectname, version, endpointGet evaluator credentials. Retrieves SAS credentials for accessing the storage account associated with the specified evaluator version.
get_versionselectname, version, endpointGet an evaluator version. Retrieves the specified evaluator version, returning 404 if it does not exist.
list_versionsselectname, endpointtype, limitList evaluator versions. Returns the available versions for the specified evaluator.
get_generation_jobselectjob_id, endpointGet an evaluator generation job. Gets the details of an evaluator generation job by its ID.
listselectendpointtype, limitList latest evaluator versions. Lists the latest version of each evaluator.
create_versionexecname, endpoint, evaluator_type, categories, definitionCreate an evaluator version. Creates a new evaluator version with an auto-incremented version identifier.
list_generation_jobsexecendpointlimit, order, after, beforeList evaluator generation jobs. Returns a list of evaluator generation jobs. The List API has up to a few seconds of propagation delay, so a recently created job may not appear immediately; use the Get evaluator generation job API with the job ID to retrieve a specific job without delay.
create_generation_jobexecendpointOperation-IdCreate an evaluator generation job. Creates an evaluator generation job. The service generates rubric-based evaluator definitions from the provided source materials asynchronously.
delete_versionexecname, version, endpointDelete an evaluator version. Removes the specified evaluator version. Returns 204 whether the version existed or not.
update_versionexecname, version, endpoint, evaluator_type, categories, definitionUpdate an evaluator version. Updates the specified evaluator version in place.
delete_generation_jobexecjob_id, endpointDelete an evaluator generation job. Deletes an evaluator generation job by its ID. Deletes the job record only; the generated evaluator (if any) is preserved.
pending_uploadexecname, version, endpoint, pendingUploadTypeStart a pending upload. Initiates a new pending upload or retrieves an existing one for the specified evaluator version.
cancel_generation_jobexecjob_id, endpointCancel an evaluator generation job. Cancels an evaluator generation job by its 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: )
job_idstringThe ID of the job to cancel. Required.
namestringRequired.
versionstringThe specific version id of the EvaluatorVersion to operate on. Required.
Operation-IdstringClient-generated unique ID for idempotent retries. When absent, the server creates the job unconditionally. Default value is None.
afterstring
beforestringA cursor for use in pagination. before is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with obj_foo, your subsequent call can include before=obj_foo in order to fetch the previous page of the list. Default value is None.
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.
orderstringSort order by the created_at timestamp of the objects. asc for ascending order anddesc for descending order. Known values are: "asc" and "desc". 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 evaluator credentials. Retrieves SAS credentials for accessing the storage account associated with the specified evaluator version.

SELECT
blobReference
FROM azure.ai_projects.beta_evaluators
WHERE name = '{{ name }}' -- required
AND version = '{{ version }}' -- required
AND endpoint = '{{ endpoint }}' -- required
;

Lifecycle Methods

Create an evaluator version. Creates a new evaluator version with an auto-incremented version identifier.

EXEC azure.ai_projects.beta_evaluators.create_version 
@name='{{ name }}' --required,
@endpoint='{{ endpoint }}' --required
@@json=
'{
"display_name": "{{ display_name }}",
"metadata": "{{ metadata }}",
"evaluator_type": "{{ evaluator_type }}",
"categories": "{{ categories }}",
"supported_evaluation_levels": "{{ supported_evaluation_levels }}",
"definition": "{{ definition }}",
"description": "{{ description }}",
"tags": "{{ tags }}"
}'
;