VectorSearchIndex
laktory.models.resources.databricks.VectorSearchIndex
¤
Bases: VectorSearchIndexBase
Databricks Vector Search Index
Examples:
import io
from laktory import models
index_yaml = '''
name: dev.finance.market_news_vs_index
primary_key: id
endpoint_name: default
index_type: DELTA_SYNC
delta_sync_index_spec:
source_table: dev.finance.market_news
embedding_vector_columns:
- name: embedding
embedding_dimension: 4095
pipeline_type: TRIGGERED
'''
index = models.resources.databricks.VectorSearchIndex.model_validate_yaml(
io.StringIO(index_yaml)
)
References
| BASE | DESCRIPTION |
|---|---|
delta_sync_index_spec
|
(object) Specification for Delta Sync Index. Required if
TYPE:
|
direct_access_index_spec
|
(object) Specification for Direct Vector Access Index. Required if
TYPE:
|
endpoint_name
|
(required) The name of the Mosaic AI Vector Search Endpoint that will be used for indexing the data
TYPE:
|
index_subtype
|
TYPE:
|
index_type
|
(required) Mosaic AI Vector Search index type. Currently supported values are: *
TYPE:
|
name
|
The name of the column
TYPE:
|
primary_key
|
(required) The column name that will be used as a primary key
TYPE:
|
timeouts
|
TYPE:
|
laktory.models.resources.databricks.vectorsearchindex.VectorSearchIndexDeltaSyncIndexSpec
¤
Bases: BaseModel
| PARAMETER | DESCRIPTION |
|---|---|
embedding_source_columns
|
(required if
TYPE:
|
embedding_vector_columns
|
(required if
TYPE:
|
embedding_writeback_table
|
(optional) Automatically sync the vector index contents and computed embeddings to the specified Delta table. The only supported table name is the index name with the suffix
TYPE:
|
pipeline_type
|
Pipeline execution mode. Possible values are: *
TYPE:
|
source_table
|
TYPE:
|
laktory.models.resources.databricks.vectorsearchindex.VectorSearchIndexDeltaSyncIndexSpecEmbeddingSourceColumns
¤
Bases: BaseModel
| PARAMETER | DESCRIPTION |
|---|---|
embedding_model_endpoint_name
|
The name of the embedding model endpoint
TYPE:
|
model_endpoint_name_for_query
|
The name of the embedding model endpoint which, if specified, is used for querying (not ingestion)
TYPE:
|
name
|
The name of the column
TYPE:
|
laktory.models.resources.databricks.vectorsearchindex.VectorSearchIndexDeltaSyncIndexSpecEmbeddingVectorColumns
¤
Bases: BaseModel
| PARAMETER | DESCRIPTION |
|---|---|
embedding_dimension
|
Dimension of the embedding vector
TYPE:
|
name
|
The name of the column
TYPE:
|
laktory.models.resources.databricks.vectorsearchindex.VectorSearchIndexDirectAccessIndexSpec
¤
Bases: BaseModel
| PARAMETER | DESCRIPTION |
|---|---|
embedding_source_columns
|
(required if
TYPE:
|
embedding_vector_columns
|
(required if
TYPE:
|
schema_json_
|
The schema of the index in JSON format. Check the API documentation for a list of supported data types
TYPE:
|
laktory.models.resources.databricks.vectorsearchindex.VectorSearchIndexDirectAccessIndexSpecEmbeddingSourceColumns
¤
Bases: BaseModel
| PARAMETER | DESCRIPTION |
|---|---|
embedding_model_endpoint_name
|
The name of the embedding model endpoint
TYPE:
|
model_endpoint_name_for_query
|
The name of the embedding model endpoint which, if specified, is used for querying (not ingestion)
TYPE:
|
name
|
The name of the column
TYPE:
|
laktory.models.resources.databricks.vectorsearchindex.VectorSearchIndexDirectAccessIndexSpecEmbeddingVectorColumns
¤
Bases: BaseModel
| PARAMETER | DESCRIPTION |
|---|---|
embedding_dimension
|
Dimension of the embedding vector
TYPE:
|
name
|
The name of the column
TYPE:
|