Skip to contents

Query the specified vector index.

Usage

query_vector_search_index(
  client,
  index_name,
  columns,
  filters_json = NULL,
  num_results = NULL,
  query_text = NULL,
  query_vector = NULL,
  score_threshold = NULL
)

vectorSearchIndexesQueryIndex(
  client,
  index_name,
  columns,
  filters_json = NULL,
  num_results = NULL,
  query_text = NULL,
  query_vector = NULL,
  score_threshold = NULL
)

Arguments

client

Required. Instance of DatabricksClient()

index_name

Required. Name of the vector index to query.

columns

Required. List of column names to include in the response.

filters_json

JSON string representing query filters.

num_results

Number of results to return.

query_text

Query text.

query_vector

Query vector.

score_threshold

Threshold for the approximate nearest neighbor search.