-
Notifications
You must be signed in to change notification settings - Fork 22
Update Databricks models and embeddings docs with m2m auth #989
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 2 commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
052b91e
Update Databricks models and embeddings docs with m2m auth
ewgenius 73b80a8
Fix spicepod sample in openai embeddings docs
ewgenius 5aafd36
Update website/docs/components/embeddings/databricks.md
ewgenius 4493ba3
Update website/docs/components/embeddings/databricks.md
ewgenius a55405e
fix letter casing
ewgenius 42e3865
Update website/docs/components/embeddings/databricks.md
ewgenius bed7547
Update website/docs/components/models/databricks.md
ewgenius 5728411
Merge branch 'trunk' into evgenii/databricks-models-m2m
lukekim File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,52 @@ | ||
| --- | ||
| title: 'Databricks Model Provider' | ||
| description: 'Instructions for using Databricks Mosaic AI Models' | ||
| sidebar_label: 'Databricks' | ||
| sidebar_position: 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. | ||
|
|
||
| ### Parameters | ||
|
|
||
| | Parameter | Description | | ||
| | -------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | | ||
| | `databricks_endpoint` | The Databricks workspace endpoint, e.g., `dbc-a12cd3e4-56f7.cloud.databricks.com`. | | ||
| | `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}`. | | ||
| | `databricks_client_id` | The Databricks Service Principal Client ID. Can't be used with `databricks_token`. | | ||
| | `databricks_client_secret` | The Databricks Service Principal Client Secret. Can't be used with `databricks_token`. | | ||
|
|
||
| ### Example `spicepod.yaml` configuration, using personal access token | ||
|
|
||
| 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). | ||
|
|
||
| ```yaml | ||
| embeddings: | ||
| - from: databricks:databricks-gte-large-en | ||
| name: gte-large-en | ||
| params: | ||
| databricks_endpoint: dbc-46470731-42e5.cloud.databricks.com | ||
| databricks_token: ${ secrets:SPICE_DATABRICKS_TOKEN } | ||
| ``` | ||
|
|
||
| ### Example `spicepod.yaml` configuration, using Databricks service principal | ||
|
|
||
| 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. | ||
|
|
||
| Ensure that you grant your service principal the "Can Query" permission for model serving. | ||
|
ewgenius marked this conversation as resolved.
Outdated
|
||
|
|
||
| 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). | ||
|
|
||
| ```yaml | ||
| embeddings: | ||
| - from: databricks:databricks-gte-large-en | ||
| name: gte-large-en | ||
| params: | ||
| databricks_endpoint: dbc-46470731-42e5.cloud.databricks.com | ||
|
ewgenius marked this conversation as resolved.
Outdated
|
||
| databricks_client_id: ${secrets:DATABRICKS_CLIENT_ID} | ||
| databricks_client_secret: ${secrets:DATABRICKS_CLIENT_SECRET} | ||
| ``` | ||
|
|
||
| ### Additional Information | ||
|
|
||
| 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. | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.