<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Official databricks-openai package fails to import after resolving databricks-vectorsearch in Generative AI</title>
    <link>https://community.databricks.com/t5/generative-ai/official-databricks-openai-package-fails-to-import-after/m-p/158563#M1853</link>
    <description>&lt;P&gt;I filed a detailed GitHub issue here:&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/databricks/databricks-ai-bridge/issues/433" target="_self"&gt;https://github.com/databricks/databricks-ai-bridge/issues/433&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Summary:&lt;/P&gt;&lt;P&gt;A clean install of `databricks-openai==0.15.0` currently resolves `databricks-vectorsearch==0.74`, after which the documented import fails:&lt;/P&gt;&lt;P&gt;```python&lt;BR /&gt;from databricks_openai import DatabricksOpenAI&lt;BR /&gt;```&lt;/P&gt;&lt;P&gt;with:&lt;/P&gt;&lt;P&gt;```text&lt;BR /&gt;ImportError: cannot import name 'VectorSearchIndex' from 'databricks.vector_search.client'&lt;BR /&gt;```&lt;/P&gt;&lt;P&gt;`pip check` reports no broken requirements.&lt;/P&gt;&lt;P&gt;This appears to be caused by `databricks-openai` eagerly importing vector-search retriever code, combined with the recent `databricks-vectorsearch` / `databricks-ai-search` package transition.&lt;/P&gt;&lt;P&gt;The immediate workaround appears to be:&lt;/P&gt;&lt;P&gt;```bash&lt;BR /&gt;python -m pip install "databricks-vectorsearch&amp;lt;0.74"&lt;BR /&gt;```&lt;/P&gt;&lt;P&gt;but that is not a good production story for an official Databricks package.&lt;/P&gt;&lt;P&gt;I’m trying to understand:&lt;/P&gt;&lt;P&gt;1. Is `databricks-openai` intended to be production-supported?&lt;BR /&gt;2. Is `databricks/databricks-ai-bridge` the correct place to report bugs for `databricks-openai`, `databricks-vectorsearch`, and `databricks-ai-search`?&lt;BR /&gt;3. Where is the source repository for `databricks-vectorsearch` / `databricks-ai-search`?&lt;BR /&gt;4. Should production users avoid `databricks-openai` and use the upstream `openai` client directly with a Databricks serving endpoint `base_url` instead?&lt;BR /&gt;5. Will Databricks publish a patch release or add dependency constraints to prevent this broken default install?&lt;/P&gt;&lt;P&gt;This is concerning because the default installation path for an official Databricks package currently results in a broken import in a clean environment, while the related PyPI pages do not clearly identify the source repository or issue tracker.&lt;/P&gt;</description>
    <pubDate>Mon, 08 Jun 2026 13:35:48 GMT</pubDate>
    <dc:creator>mbecker</dc:creator>
    <dc:date>2026-06-08T13:35:48Z</dc:date>
    <item>
      <title>Official databricks-openai package fails to import after resolving databricks-vectorsearch</title>
      <link>https://community.databricks.com/t5/generative-ai/official-databricks-openai-package-fails-to-import-after/m-p/158563#M1853</link>
      <description>&lt;P&gt;I filed a detailed GitHub issue here:&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/databricks/databricks-ai-bridge/issues/433" target="_self"&gt;https://github.com/databricks/databricks-ai-bridge/issues/433&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Summary:&lt;/P&gt;&lt;P&gt;A clean install of `databricks-openai==0.15.0` currently resolves `databricks-vectorsearch==0.74`, after which the documented import fails:&lt;/P&gt;&lt;P&gt;```python&lt;BR /&gt;from databricks_openai import DatabricksOpenAI&lt;BR /&gt;```&lt;/P&gt;&lt;P&gt;with:&lt;/P&gt;&lt;P&gt;```text&lt;BR /&gt;ImportError: cannot import name 'VectorSearchIndex' from 'databricks.vector_search.client'&lt;BR /&gt;```&lt;/P&gt;&lt;P&gt;`pip check` reports no broken requirements.&lt;/P&gt;&lt;P&gt;This appears to be caused by `databricks-openai` eagerly importing vector-search retriever code, combined with the recent `databricks-vectorsearch` / `databricks-ai-search` package transition.&lt;/P&gt;&lt;P&gt;The immediate workaround appears to be:&lt;/P&gt;&lt;P&gt;```bash&lt;BR /&gt;python -m pip install "databricks-vectorsearch&amp;lt;0.74"&lt;BR /&gt;```&lt;/P&gt;&lt;P&gt;but that is not a good production story for an official Databricks package.&lt;/P&gt;&lt;P&gt;I’m trying to understand:&lt;/P&gt;&lt;P&gt;1. Is `databricks-openai` intended to be production-supported?&lt;BR /&gt;2. Is `databricks/databricks-ai-bridge` the correct place to report bugs for `databricks-openai`, `databricks-vectorsearch`, and `databricks-ai-search`?&lt;BR /&gt;3. Where is the source repository for `databricks-vectorsearch` / `databricks-ai-search`?&lt;BR /&gt;4. Should production users avoid `databricks-openai` and use the upstream `openai` client directly with a Databricks serving endpoint `base_url` instead?&lt;BR /&gt;5. Will Databricks publish a patch release or add dependency constraints to prevent this broken default install?&lt;/P&gt;&lt;P&gt;This is concerning because the default installation path for an official Databricks package currently results in a broken import in a clean environment, while the related PyPI pages do not clearly identify the source repository or issue tracker.&lt;/P&gt;</description>
      <pubDate>Mon, 08 Jun 2026 13:35:48 GMT</pubDate>
      <guid>https://community.databricks.com/t5/generative-ai/official-databricks-openai-package-fails-to-import-after/m-p/158563#M1853</guid>
      <dc:creator>mbecker</dc:creator>
      <dc:date>2026-06-08T13:35:48Z</dc:date>
    </item>
    <item>
      <title>Re: Official databricks-openai package fails to import after resolving databricks-vectorsearch</title>
      <link>https://community.databricks.com/t5/generative-ai/official-databricks-openai-package-fails-to-import-after/m-p/163115#M1946</link>
      <description>&lt;P class="PDq2pG_selectionAnchorContainer" data-end="297" data-start="0"&gt;Good news, this is already fixed. A Databricks maintainer confirmed the bug on your GitHub issue and shipped &lt;CODE data-end="136" data-start="109"&gt;databricks-openai==0.16.0&lt;/CODE&gt; together with &lt;CODE data-end="181" data-start="151"&gt;databricks-ai-bridge==0.20.0&lt;/CODE&gt; on June 10 to resolve it. So the actual fix, instead of pinning &lt;CODE data-end="276" data-start="246"&gt;databricks-vectorsearch&amp;lt;0.74&lt;/CODE&gt;, is just to upgrade:&lt;/P&gt;
&lt;DIV class="relative w-full mt-4 mb-1"&gt;
&lt;DIV class=""&gt;
&lt;DIV class="contents"&gt;
&lt;DIV class="border border-token-border-light border-radius-3xl corner-superellipse/1.1 rounded-3xl"&gt;
&lt;DIV class="relative h-full w-full border-radius-3xl bg-(--code-block-surface) corner-superellipse/1.1 overflow-clip rounded-3xl [--code-block-surface:var(--bg-elevated-secondary)] dark:[--code-block-surface:var(--composer-surface-primary)] lxnfua_clipPathFallback"&gt;
&lt;DIV class="pointer-events-none absolute inset-x-4 top-12 bottom-4"&gt;
&lt;DIV class="pointer-events-none sticky z-40 shrink-0 z-1!"&gt;
&lt;DIV class="sticky bg-token-border-light"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;DIV class="relative"&gt;
&lt;DIV class="h-full min-h-0 min-w-0"&gt;
&lt;DIV class="h-full min-h-0 min-w-0"&gt;
&lt;DIV class=""&gt;
&lt;DIV class="relative"&gt;
&lt;DIV class=""&gt;
&lt;DIV class="relative z-0 flex max-w-full"&gt;
&lt;DIV id="code-block-viewer" class="q9tKkq_viewer cm-editor z-10 light:cm-light dark:cm-light flex h-full w-full flex-col items-stretch ͼs ͼ16" dir="ltr"&gt;
&lt;DIV class="cm-scroller"&gt;
&lt;PRE class="cm-content q9tKkq_readonly m-0"&gt;&lt;CODE&gt;&lt;SPAN&gt;python &lt;/SPAN&gt;&lt;SPAN class="ͼ12"&gt;-m&lt;/SPAN&gt;&lt;SPAN&gt; pip install &lt;/SPAN&gt;&lt;SPAN class="ͼ12"&gt;-U&lt;/SPAN&gt; &lt;SPAN class="ͼz"&gt;"databricks-openai&amp;gt;=0.16.0"&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;P data-end="461" data-start="365"&gt;That pulls in the compatible &lt;CODE data-end="416" data-start="394"&gt;databricks-ai-bridge&lt;/CODE&gt; version and the import works normally again.&lt;/P&gt;
&lt;P data-end="487" data-start="463"&gt;On your other questions:&lt;/P&gt;
&lt;P data-end="726" data-start="489"&gt;&lt;CODE data-end="522" data-start="489"&gt;databricks/databricks-ai-bridge&lt;/CODE&gt; is the right place to file issues, it's the source repo that publishes &lt;CODE data-end="613" data-start="594"&gt;databricks-openai&lt;/CODE&gt;, and it clearly is actively monitored, your issue went from filed to root-caused to a released fix in four days.&lt;/P&gt;
&lt;P data-end="1215" data-start="728"&gt;For &lt;CODE data-end="757" data-start="732"&gt;databricks-vectorsearch&lt;/CODE&gt; and &lt;CODE data-end="784" data-start="762"&gt;databricks-ai-search&lt;/CODE&gt;, they come from the same repo. The short version of why this broke: Vector Search was renamed to AI Search, &lt;CODE data-end="915" data-start="893"&gt;databricks-ai-search&lt;/CODE&gt; is the new canonical package, and &lt;CODE data-end="975" data-start="950"&gt;databricks-vectorsearch&lt;/CODE&gt; is now kept around as a thin compatibility shim that re-exports from &lt;CODE data-end="1067" data-start="1045"&gt;databricks-ai-search&lt;/CODE&gt; with a deprecation warning. That rename and shuffle is almost certainly what shifted the symbol &lt;CODE data-end="1185" data-start="1164"&gt;databricks_openai's&lt;/CODE&gt; retriever tool was importing.&lt;/P&gt;
&lt;P data-is-only-node="" data-is-last-node="" data-end="1750" data-start="1217"&gt;On using the plain &lt;CODE data-end="1244" data-start="1236"&gt;openai&lt;/CODE&gt; client instead, that's a legitimate and fully documented path if all you need is chat completions against a serving endpoint. Point the OpenAI client at &lt;CODE data-end="1438" data-start="1398"&gt;&amp;lt;your-workspace-url&amp;gt;/serving-endpoints&lt;/CODE&gt; as the base URL and use a Databricks PAT as the API key, no &lt;CODE data-end="1518" data-start="1499"&gt;databricks-openai&lt;/CODE&gt; package required. You'd only need &lt;CODE data-end="1572" data-start="1553"&gt;databricks-openai&lt;/CODE&gt; specifically for the extra convenience wrappers, like the Unity Catalog function toolkit or the vector search retriever tool integration, that the plain client doesn't give you.&lt;/P&gt;</description>
      <pubDate>Wed, 15 Jul 2026 17:59:37 GMT</pubDate>
      <guid>https://community.databricks.com/t5/generative-ai/official-databricks-openai-package-fails-to-import-after/m-p/163115#M1946</guid>
      <dc:creator>iyashk-DB</dc:creator>
      <dc:date>2026-07-15T17:59:37Z</dc:date>
    </item>
  </channel>
</rss>

