You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
description: 'Instructions for using Databricks Mosaic AI Models'
4
+
sidebar_label: 'Databricks'
5
+
sidebar_position: 8
6
+
---
7
+
8
+
To use an embedding model deployed to [Databricks Mosaic AI Model Serving](https://docs.databricks.com/aws/en/machine-learning/model-serving/), specify the model endpoint name prefixed with `databricks:` in the `from` field and include the required parameters in the `params` section.
|`databricks_endpoint`| The Databricks workspace endpoint, e.g., `dbc-a12cd3e4-56f7.cloud.databricks.com`. |
15
+
|`databricks_token`| The Databricks API token to authenticate with the Databricks Models API. Use the [secret replacement syntax](../secret-stores/index.md) to reference a secret, e.g., `${secrets:my_databricks_token}`. |
16
+
|`databricks_client_id`| The Databricks Service Principal Client ID. Can't be used with `databricks_token`. |
17
+
|`databricks_client_secret`| The Databricks Service Principal Client Secret. Can't be used with `databricks_token`. |
18
+
19
+
### Example `spicepod.yaml` configuration, using personal access token
20
+
21
+
To learn more about how to set up personal access tokens, see [Databricks PAT docs](https://docs.databricks.com/aws/en/dev-tools/auth/pat).
### Example `spicepod.yaml` configuration, using Databricks service principal
33
+
34
+
Spice supports the M2M OAuth flow with service principal credentials by utilizing the `databricks_client_id` and `databricks_client_secret` parameters. The runtime will automatically refresh the token.
35
+
36
+
The service principal must be granted the "Can Query" permission for model serving.
37
+
38
+
To learn more about how to set up the service principal, see [Databricks M2M OAuth docs](https://docs.databricks.com/aws/en/dev-tools/auth/oauth-m2m).
Refer to the [Mosaic AI Model Serving documentation](https://docs.databricks.com/aws/en/machine-learning/model-serving/) for more details on available models and configurations.
|`databricks_endpoint`| The Databricks workspace endpoint, e.g., `dbc-a12cd3e4-56f7.cloud.databricks.com`. |
15
-
|`databricks_token`| The Databricks API token to authenticate with the Unity Catalog API. Use the [secret replacement syntax](../secret-stores/index.md) to reference a secret, e.g., `${secrets:my_databricks_token}`. |
|`databricks_endpoint`| The Databricks workspace endpoint, e.g., `dbc-a12cd3e4-56f7.cloud.databricks.com`. |
15
+
|`databricks_token`| The Databricks API token to authenticate with the Databricks Models API. Use the [secret replacement syntax](../secret-stores/index.md) to reference a secret, e.g., `${secrets:my_databricks_token}`. |
16
+
|`databricks_client_id`| The Databricks Service Principal Client ID. Can't be used with `databricks_token`. |
17
+
|`databricks_client_secret`| The Databricks Service Principal Client Secret. Can't be used with `databricks_token`. |
16
18
17
-
### Example `spicepod.yaml` Configuration
19
+
### Example `spicepod.yaml` configuration, using personal access token
20
+
21
+
To learn more about how to set up personal access tokens, see [Databricks PAT docs](https://docs.databricks.com/aws/en/dev-tools/auth/pat).
### Example `spicepod.yaml` configuration, using Databricks service principal
33
+
34
+
Spice supports the M2M OAuth flow with service principal credentials by utilizing the `databricks_client_id` and `databricks_client_secret` parameters. The runtime will automatically refresh the token.
35
+
36
+
The service principal must be granted the "Can Query" permission for model serving.
37
+
38
+
To learn more about how to set up the service principal, see [Databricks M2M OAuth docs](https://docs.databricks.com/aws/en/dev-tools/auth/oauth-m2m).
Refer to the [Mosaic AI Model Serving documentation](https://docs.databricks.com/aws/en/machine-learning/model-serving/) for more details on available models and configurations.
0 commit comments