Skip to content
Data
Skill

/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

From plugin
databricks-agent-skills
41138 skills4 commands3 hooks

Claude Code

$ npx -y skills add databricks/databricks-agent-skills --skill databricks-vector-search --agent claude-code

SKILL.md

databricks-vector-search.SKILL.md
name: databricks-vector-search
description: "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)."
compatibility: Requires databricks-ai-search >= 0.79 (Python); >= 0.80 for start_endpoint/stop_endpoint; 0.82+ for the databricks-ai-search CLI
metadata:
  version: "0.2.0"
parent: databricks-core

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](https://docs.databricks.com/aws/en/ai-search/ai-search#vector-search-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](#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="TRIGGERED",  # "CONTINUOUS" i
Read more
@databricks
Ships withdatabricks-agent-skills

Build on Databricks with AI coding agents such as Claude Code, Cursor, Codex, GitHub Copilot, and many others. This repository provides the skills and agent plugins for Databricks AI Tools.

Stars on GitHub

Momentum

stars in total
411
Star history of databricks/databricks-agent-skills on GitHub, a chart by star-history.com

Other skills on databricks-agent-skills.

More skills from other plugins.

paddleocr-doc-parsing

paddleocr-doc-parsing

Use this skill to extract structured Markdown/JSON from PDFs and document images—tables with cell-level precision, formulas as…

paddleocr2mo93k
@paddlepaddle@paddlepaddleInstall Skill
context-loader
Auto-invoked

context-loader

Search memories from earlier Pi sessions in this repository. Use it when earlier work may already explain the code, error,…

mem03w69k
@mem0ai@mem0aiInstall Skill
analyzing-ai-citations

analyzing-ai-citations

Answer AI citation and answer engine optimization (AEO) questions in PostHog: whether AI answer engines (ChatGPT, Claude, and an…

posthog4w41k
@posthog@posthogInstall Skill

Questions about databricks-vector-search.

Which coding agents can use databricks-vector-search?
databricks-vector-search installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.