yggdrasil.databricks.ai.vector_search.service¶
service ¶
Databricks Vector Search service.
client.ai.vector_search.endpoint("rag") and
client.ai.vector_search.index("main.rag.docs") are the two most-used
entry points. The service holds a :class:VectorSearchDefaults so
callers can set endpoint_name / endpoint_type /
embedding_model_endpoint_name once and stop repeating them on every
call.
VectorSearch ¶
Bases: DatabricksService
High-level wrapper around Databricks Vector Search APIs.
Attributes¶
defaults
:class:VectorSearchDefaults — service-wide configuration.
Replace via client.ai.vector_search.defaults = replace(...)
the same way :class:~yggdrasil.databricks.genie.Genie does.
environments
property
¶
Base-environment service (shorthand for client.environments).
tables
property
¶
Collection-level Unity Catalog table service (shorthand for client.tables).
views
property
¶
Alias for :attr:tables — :class:Table covers both managed/external
tables and view-shaped securables.
catalogs
property
¶
Collection-level Unity Catalog hierarchy service (shorthand for client.catalogs).
schemas
property
¶
Collection-level Unity Catalog schema service (shorthand for client.schemas).
volumes
property
¶
Collection-level Unity Catalog volume service (shorthand for client.volumes).
endpoint ¶
Return a :class:VectorSearchEndpoint handle.
endpoint_name defaults to :attr:VectorSearchDefaults.endpoint_name.
list_endpoints ¶
Iterate over vector-search endpoints visible in this workspace.
find_endpoint ¶
Return the endpoint with this name, or None when missing.
index ¶
Return a :class:VectorSearchIndex handle.
endpoint_name resolves to the explicit arg, then
:attr:VectorSearchDefaults.endpoint_name, then the value
carried by the cached :class:VectorIndex infos on first
:meth:VectorSearchIndex.refresh.
list_indexes ¶
Iterate over indexes hosted on a given endpoint.
default_tags ¶
Return default resource tags for Databricks assets.
Returns:
| Type | Description |
|---|---|
dict[str, str]
|
A dict of default tags. |