Skip to main content

vector_search_indexes

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

Overview

Namevector_search_indexes
TypeResource
Iddatabricks_workspace.vectorsearch.vector_search_indexes

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
job_idstringDatabricks Jobs job_id of the autoeval background-compute job for this index, so the UI can surface a link to the job. Unset when no autoeval job exists for the index yet.
end_time_msinteger
latest_runobjectState of the latest autoeval run, including stage progress. Populated only while status is AUTO_EVAL_DISPLAY_STATUS_RUNNING and the running wheel has reported at least one stage update. Absent for terminal states.
run_as_userstringThe user the latest job run was created as. Used by the UI to construct the per-run MLflow dashboard URL.
state_messagestringFree-form failure copy from the underlying job. Populated only when status is AUTO_EVAL_DISPLAY_STATUS_FAILED. Capped server-side to bound payload size when the job emits long stack traces.
statusstringCurrent display status of the latest autoeval run. (AUTO_EVAL_DISPLAY_STATUS_FAILED, AUTO_EVAL_DISPLAY_STATUS_PENDING, AUTO_EVAL_DISPLAY_STATUS_RUNNING, AUTO_EVAL_DISPLAY_STATUS_SUCCEEDED)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
vector_search_indexes_get_auto_eval_statusselectname, deployment_nameReturns the status of the latest autoeval run for a vector index.
run_auto_evalexecname, deployment_nameTriggers an autoeval quality evaluation for a vector index.
run_reranker_finetuningexecname, deployment_nameTriggers reranker finetuning for a vector index.
update_index_budget_policyexecindex_name, deployment_nameUpdate the budget policy of an index

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
deployment_namestringThe Databricks Workspace Deployment Name (default: dbc-abcd0123-a1bc)
index_namestringName of the AI Search index
namestringFully qualified index name (catalog.schema.index).

SELECT examples

Returns the status of the latest autoeval run for a vector index.

SELECT
job_id,
end_time_ms,
latest_run,
run_as_user,
state_message,
status
FROM databricks_workspace.vectorsearch.vector_search_indexes
WHERE name = '{{ name }}' -- required
AND deployment_name = '{{ deployment_name }}' -- required
;

Lifecycle Methods

Triggers an autoeval quality evaluation for a vector index.

EXEC databricks_workspace.vectorsearch.vector_search_indexes.run_auto_eval
@name='{{ name }}' --required,
@deployment_name='{{ deployment_name }}' --required
@@json=
'{
"num_queries": {{ num_queries }},
"num_results": {{ num_results }},
"query_types": "{{ query_types }}",
"queryset_query_column": "{{ queryset_query_column }}",
"queryset_relevant_docs_column": "{{ queryset_relevant_docs_column }}",
"queryset_table": "{{ queryset_table }}"
}'
;