databricks_vector_search_index Resource

This resource allows you to create Vector Search Index in Databricks. Vector Search is a serverless similarity search engine that allows you to store a vector representation of your data, including metadata, in a vector database. The Vector Search Index provides the ability to search data in the linked Delta Table.

Example Usage

resource "databricks_vector_search_index" "sync" {
  name          = "main.default.vector_search_index"
  endpoint_name = databricks_vector_search_endpoint.this.name
  primary_key   = "id"
  index_type    = "DELTA_SYNC"
  delta_sync_index_spec {
    source_table  = "main.default.source_table"
    pipeline_type = "TRIGGERED"
    embedding_source_columns {
      name                          = "text"
      embedding_model_endpoint_name = databricks_model_serving.this.name
    }
  }
}

Argument Reference

The following arguments are supported (change of any parameter leads to recreation of the resource):

Attribute Reference

In addition to all arguments above, the following attributes are exported:

Import

The resource can be imported using the name of the Vector Search Index

terraform import databricks_vector_search_index.this <index-name>