Skip to main content

indexes

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

Overview

Nameindexes
TypeResource
Idazure.ai_evaluation.indexes

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringAsset ID, a unique identifier for the asset.
namestringThe name of the resource. Required.
descriptionstringThe asset description text.
tagsobjectTag dictionary. Tags can be added, removed, and updated.
typestringType of index. Required. Known values are: "AzureSearch", "CosmosDBNoSqlVectorStore", and "ManagedAzureSearch".
versionstringThe version of the resource. Required.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_versionselectname, version, endpointGet the specific version of the Index. The service returns 404 Not Found error if the Index does not exist.
list_versionsselectname, endpointList all versions of the given Index.
list_latestselectendpointList the latest version of each Index.
delete_versionexecname, version, endpointDelete the specific version of the Index. The service returns 204 No Content if the Index was deleted successfully or if the Index does not exist.
create_or_update_versionexecname, version, endpoint, typeCreate a new or update an existing Index 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 specific version id of the Index to create or update. Required.

SELECT examples

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

SELECT
id,
name,
description,
tags,
type,
version
FROM azure.ai_evaluation.indexes
WHERE name = '{{ name }}' -- required
AND version = '{{ version }}' -- required
AND endpoint = '{{ endpoint }}' -- required
;

Lifecycle Methods

Delete the specific version of the Index. The service returns 204 No Content if the Index was deleted successfully or if the Index does not exist.

EXEC azure.ai_evaluation.indexes.delete_version 
@name='{{ name }}' --required,
@version='{{ version }}' --required,
@endpoint='{{ endpoint }}' --required
;