Skip to main content

Use Databricks models in Visual Studio Code Chat

The Databricks IDE extension brings the models that your workspace serves through Unity Gateway to Visual Studio Code Chat. You can chat with them, and use them in agent mode, like the other models in Chat.

Requirements​

To use Databricks models in Visual Studio Code Chat:

Databricks models aren't available in Cursor.

Sign in to Unity Gateway​

Unity Gateway has its own sign-in, separate from your project's workspace connection, so it can use a different workspace. The first time you sign in to a workspace, the extension signs Unity Gateway in to the same workspace.

To sign in to Unity Gateway:

  1. On the sidebar, click the Databricks icon.
  2. In the Connection view, click the Unity Gateway connection row. The row appears after you sign in to a workspace or open a project. You can also run Databricks: Sign in to Unity Gateway from the Command Palette.
  3. Select a workspace and a profile, as you do to sign in to a workspace. See Connect and authenticate the Databricks IDE extension.

The Unity Gateway connection row in the Connection view shows the profile that Unity Gateway uses. To use another workspace, click Switch Unity Gateway workspace on the row. To sign out, click Sign out of Unity Gateway.

Chat with a Databricks model​

  1. In the Models & AI tools view, click Models. The model picker of Visual Studio Code Chat opens.

    Models row in the Models & AI tools view

  2. Select a model under Databricks.

    Databricks models in the Chat model picker

  3. Enter your request in Chat.