Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

databricks-vector-search

БесплатноБез исполняемых скриптовНе проверен

Databricks AI Search (formerly Vector Search) endpoints and indexes for RAG and semantic search. Use when asked to: create Standard or Storage-Optimized…

databricksот databricks★ 421 звезда на GitHub

Об этом скилле

Databricks AI Search (formerly Vector Search)

FIRST: Use the parent databricks-core skill for CLI basics, authentication, and profile selection.

Patterns for creating, managing, and querying AI Search indexes for RAG and semantic search applications.

Naming: the REST API (/api/2.0/vector-search/...), the databricks vector-search-* CLI groups, and the databricks_vector_search_* Terraform resources keep the Vector Search names (API and tool names); the Python client is databricks-ai-search (AISearchClient).

When to Use

Use this skill when:

  • Building RAG (Retrieval-Augmented Generation) applications
  • Implementing semantic search or similarity matching
  • Creating vector indexes from Delta tables
  • Choosing between storage-optimized and standard endpoints
  • Querying vector indexes with filters

Overview

Databricks AI Search provides managed vector similarity search with automatic embedding generation and Delta Lake integration.

Component Description
Endpoint Compute resource hosting indexes (Standard or Storage-Optimized)
Index Vector data structure for similarity search
Delta Sync Auto-syncs with source Delta table
Direct Access Manual CRUD operations on vectors (Standard endpoints only)

Endpoint Types

Type Latency Capacity Cost Best For
Standard 20-50ms 320M vectors (768 dim) Higher Real-time, low-latency, high QPS
Storage-Optimized 300-500ms 1B+ vectors (768 dim) Up to 7x lower 10M+ vectors, cost-sensitive

Storage-Optimized supports only TRIGGERED Delta Sync indexes: no CONTINUOUS pipelines, no Direct Access, no target_qps. The endpoint type cannot be changed after creation.

Index Types

Type Embeddings Sync Use Case
Delta Sync (managed) Databricks computes Auto from Delta Easiest setup
Delta Sync (self-managed) You provide Auto from Delta Custom embeddings
Direct Access You provide Manual CRUD Real-time updates

Installation

pip install "databricks-ai-search>=0.79"

In a notebook, use %pip install instead and run dbutils.library.restartPython() afterwards: the package requires mlflow-skinny>=3.10.1, so installing it upgrades mlflow in place.

databricks.ai_search first shipped in databricks-ai-search 0.73. This skill needs 0.79+: from 0.79, get_endpoint, list_endpoints and list_indexes always return snake_case keys, and 0.79 also includes the 0.78 fix that makes concurrent similarity_search calls thread-safe (needed for production traffic). From 0.81, service principal auth no longer requires the all-apis OAuth scope.

Existing databricks-vectorsearch code: on databricks-vectorsearch 0.74+, VectorSearchClient is an alias of AISearchClient, so the calls in this skill work on it once databricks-ai-search>=0.79 is installed alongside it. On 0.73 and older it is a separate class: switch the import to from databricks.ai_search.client import AISearchClient. The old class has no start/stop calls, and before 0.68 no target_qps.

Auth: a bare AISearchClient() uses the notebook's credentials. Elsewhere, pass workspace_url plus a personal_access_token, or service_principal_client_id and service_principal_client_secret (needed for high-QPS traffic; see Production and High QPS).

AISearchClient takes plain strings (endpoint_type="STANDARD", pipeline_type="TRIGGERED"). Don't pass the databricks.sdk.service.vectorsearch enums to it; those are for WorkspaceClient.vector_search_*.

Quick Start

Create Endpoint

from databricks.ai_search.client import AISearchClient

client = AISearchClient()

client.create_endpoint(
    name="my-vs-endpoint",
    endpoint_type="STANDARD"  # or "STORAGE_OPTIMIZED"
)
# Note: Endpoint creation is asynchronous; check status with get_endpoint()

create_endpoint_and_wait(..., timeout=datetime.timedelta(minutes=30)) blocks until the endpoint is ONLINE. It fails fast on OFFLINE (and, from 0.80, STOPPING and STOPPED); in other states it polls until the timeout. On a timeout the endpoint may still be provisioning: check client.get_endpoint(name)["endpoint_status"]["state"] before retrying, and don't create it again.

Create Delta Sync Index (Managed Embeddings)

Standard endpoints need Change Data Feed on the source table:

ALTER TABLE catalog.schema.documents SET TBLPROPERTIES (delta.enableChangeDataFeed = true);
# Source table must have: primary key column + text column
index = client.create_delta_sync_index(
    endpoint_name="my-vs-endpoint",
    source_table_name="catalog.schema.documents",
    index_name="catalog.schema.my_index",
    pipeline_type="TR
Полный SKILL.md на GitHub

Установить databricks-vector-search в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

agents/openai.yamlassets/databricks.pngassets/databricks.svgreferences/end-to-end-rag.mdreferences/index-types.mdreferences/search-modes.mdreferences/troubleshooting-and-operations.md

FAQ

Что делает скилл databricks-vector-search?

Databricks AI Search (formerly Vector Search) endpoints and indexes for RAG and semantic search. Use when asked to: create Standard or Storage-Optimized endpoints and Delta Sync or Direct Access indexes with AISearchClient; query with ANN, hybrid, or full-text search and filters; sync, monitor, or migrate indexes; run the built-in index search quality evaluation; set a target QPS, triage 429s, or load-test an endpoint; wire an index into an agent as a retriever tool. NOT for: MLflow evaluation of RAG apps/agents (databricks-mlflow-evaluation); no-code document Q&A (databricks-genie-agents); serving-endpoint CRUD (databricks-model-serving); custom ResponsesAgent authoring and deployment (databricks-ml-training).

Как установить скилл databricks-vector-search?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл databricks-vector-search запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить databricks-vector-search с