databricks-ai-function…
Use Databricks built-in AI Functions (ai_classify, ai_decide, ai_extract, ai_summarize, ai_mask, ai_translate, ai_fix_grammar,…
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
Claude Code
$ npx -y skills add databricks/databricks-agent-skills --skill databricks-vector-search --agent claude-code
Codex
$ npx skills add databricks/databricks-agent-skills --skill databricks-vector-search -a codex -y
Cursor
$ npx skills add databricks/databricks-agent-skills --skill databricks-vector-search -a cursor -y
Gemini CLI
$ npx skills add databricks/databricks-agent-skills --skill databricks-vector-search -a gemini-cli -y
GitHub Copilot
$ npx skills add databricks/databricks-agent-skills --skill databricks-vector-search -a github-copilot -y
OpenCode
$ npx skills add databricks/databricks-agent-skills --skill databricks-vector-search -a opencode -y
Windsurf
$ npx skills add databricks/databricks-agent-skills --skill databricks-vector-search -a windsurf -y
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
**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`).
Use this skill when:
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) |
| 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.
| 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 |
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_*`.
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.
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" iBuild 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.
Use Databricks built-in AI Functions (ai_classify, ai_decide, ai_extract, ai_summarize, ai_mask, ai_translate, ai_fix_grammar,…
Databricks AI Runtime, the `databricks air` CLI commands for submitting and managing GPU training workloads on Databricks…
Create Databricks AI/BI dashboards. Must use when creating, updating, or deploying Lakeview dashboards as Databricks Dashboard…
Design the UX of custom-code Databricks Apps (AppKit/React) data screens — KPI/overview pages, reports, charts, tables, and…
Python backend for Databricks Apps — FastAPI (default), Flask, Dash, Streamlit, Gradio, Reflex. **Default for a new Databricks…
Build apps on Databricks Apps platform. Use when asked to create data apps, analytics tools, or custom interactive…
Use this skill to extract structured Markdown/JSON from PDFs and document images—tables with cell-level precision, formulas as…
Estimates intracellular metabolic fluxes from steady-state carbon-13 isotope-tracing measurements using validated atom maps,…