skillfed

databricks-openai

Support for Databricks AI support with OpenAI

databricks-openai v0.17.0 1.4M downloads/30d#3,886 on PyPI
Permissive license Apache-2.0 Active released

What it is and what it does

databricks-openai bridges Databricks AI capabilities into OpenAI-based applications by providing tool definitions that work with OpenAI's function-calling API. The primary use case is retrieval-augmented generation (RAG): it wraps Databricks vector search indexes as callable tools that OpenAI models can invoke during chat completions to fetch relevant context before generating responses.

The package depends on eight runtime libraries including databricks-ai-bridge, mlflow, openai, pydantic, and several Databricks-specific modules. It requires Python 3.10 or later and installs as a pure-Python wheel with low friction. The integration follows OpenAI's standard tool-use pattern: define a VectorSearchRetrieverTool pointing to a Databricks index, pass it to the chat completions API, parse the model's tool calls, execute the retrieval, and feed results back to the model.

Use it for:

  • Build RAG systems where OpenAI models query Databricks vector indexes to ground responses in proprietary data
  • Create chatbots that retrieve context from Databricks documentation or knowledge bases before answering user questions
  • Integrate Databricks AI Search with OpenAI agents for multi-step reasoning over indexed data
  • Combine MLflow model tracking with OpenAI function calling for reproducible, retrieval-augmented workflows

Worth the install?

AI-flagged interpretation of the facts on this page — verify before relying

Integrates Databricks AI features, particularly vector search, into OpenAI applications through tool definitions and retrieval workflows.

Yes, if you are building OpenAI applications that need to retrieve context from Databricks vector indexes. The low install friction, active maintenance, permissive license, and no known vulnerabilities make it a safe choice. The package is narrowly scoped to a specific integration pattern, so install only if you have both Databricks infrastructure and OpenAI API access.

Install

databricks-openai on PyPI

pip

pip install databricks-openai

uv

uv add databricks-openai

poetry

poetry add databricks-openai

Installing databricks-openai

Before you install

Low friction install with a pure-Python wheel. Active maintenance status and recent releases. Requires Python 3.10 or later.

License in practice

Apache-2.0 permissive license allows commercial use, modification, and distribution with minimal restrictions.

Quickstart

pip install databricks-openai

from databricks_openai import VectorSearchRetrieverTool
import json
from openai import OpenAI

client = OpenAI()
dbvs_tool = VectorSearchRetrieverTool(index_name="catalog.schema.my_index")
messages = [{"role": "user", "content": "Answer based on Databricks docs"}]
response = client.chat.completions.create(
    model="gpt-4o",
    messages=messages,
    tools=[dbvs_tool.tool]
)

Requires Python 3.10 or later; Databricks workspace with a configured vector search index; OpenAI API key.

Verify before relying

  • Whether VectorSearchRetrieverTool requires pre-existing Databricks vector indexes or can create them
  • Support for embedding models other than OpenAI's default
  • Performance characteristics with large vector indexes or high query volume

Package facts

License Apache-2.0 (permissive)
Python support supports the current Python release (>=3.10)
Install friction low — pure-Python wheel
Runtime dependencies 8 — databricks-ai-bridge, databricks-ai-search, databricks-mcp, mlflow, openai-agents, openai, pydantic, unitycatalog-openai
Maintenance actively maintained — 50 days since the last release
First released
Downloads 1,448,755/month — #3,886 on PyPI (30-day window, as of 2026-08-14)
Known vulnerabilities none known (OSV.dev, checked 2026-08-14)

Evidence: databricks_openai-0.17.0-py3-none-any.whl

Tags

databricks vector search openairag with databricks and openaidatabricks ai retrieval toolsopenai function calling databricksvector search retrieval integrationdatabricks mlflow openai agents
ragvector-searchdatabricks-integration

More Artificial Intelligence packages

litellm

LiteLLM provides a unified Python interface to…

permissive · top 100 on PyPI

huggingface-hub

Client library and CLI tool for downloading,…

permissive · top 100 on PyPI

langchain

LangChain provides a framework for building…

permissive · top 1,000 on PyPI

hf-xet

hf-xet provides chunk-based deduplication and…

permissive · top 1,000 on PyPI

tokenizers

Tokenizers converts raw text into token…

permissive · top 1,000 on PyPI

transformers

Transformers provides a unified framework for…

permissive · top 1,000 on PyPI

databricks-ai-bridge

Provides a shared Python API layer for building…

unclear · top 5,000 on PyPI

unitycatalog-openai

Exposes Unity Catalog functions as tools for…

permissive · top 5,000 on PyPI

langchain-databricks

Connects LangChain applications to Databricks…

permissive · top 15,000 on PyPI

databricks-langchain

Integrates Databricks AI services—LLMs, vector…

permissive · top 5,000 on PyPI

databricks-ai-search

Python client for Databricks AI Search, a…

unclear · top 5,000 on PyPI

llama-index-embeddings-azure-openai

Integrates Azure OpenAI's embedding models with…

permissive · top 15,000 on PyPI

databricks-mcp

Provides helpers and utilities to integrate MCP…

permissive · top 5,000 on PyPI

databricks-vectorsearch

A deprecated re-export shim that forwards to…

unclear · top 5,000 on PyPI

llama-index-embeddings-openai

Integrates OpenAI's embedding models with…

permissive · top 5,000 on PyPI

unitycatalog-ai

Provides Python APIs to create, retrieve, and…

permissive · top 5,000 on PyPI