-
Notifications
You must be signed in to change notification settings - Fork 159
Add support for Vector Search Endpoint (direct only) #4887
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
base: main
Are you sure you want to change the base?
Changes from all commits
21f14c2
0d8d10a
7709fa9
1373144
114911e
f252c6d
86a7ffe
be3589d
c2692ec
f31ca1e
f10545a
3603137
0533a01
ca87557
e700521
885309a
8d8f392
7a95921
63532ee
56c99d9
c95e932
0b615d5
08c6565
e5cbab8
08b590e
097a2bf
bf43e56
bbe139f
5bfac54
733688f
6a153df
b526c7f
484814f
908066b
3e736c0
4226c79
fff9fdc
81394d1
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,11 @@ | ||
| bundle: | ||
| name: test-bundle-$UNIQUE_NAME | ||
|
|
||
| sync: | ||
| paths: [] | ||
|
|
||
| resources: | ||
| vector_search_endpoints: | ||
| endpoint1: | ||
| name: $ENDPOINT_NAME | ||
| endpoint_type: STANDARD |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,43 @@ | ||
|
|
||
| >>> [CLI] vector-search-endpoints create-endpoint test-vs-endpoint-[UNIQUE_NAME] STANDARD | ||
| { | ||
| "id": "[UUID]", | ||
| "name": "test-vs-endpoint-[UNIQUE_NAME]", | ||
| "endpoint_type": "STANDARD" | ||
| } | ||
|
|
||
| >>> [CLI] bundle deployment bind endpoint1 test-vs-endpoint-[UNIQUE_NAME] --auto-approve | ||
| Updating deployment state... | ||
| Successfully bound vector_search_endpoint with an id 'test-vs-endpoint-[UNIQUE_NAME]' | ||
| Run 'bundle deploy' to deploy changes to your workspace | ||
|
|
||
| >>> [CLI] bundle deploy --auto-approve | ||
| Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/test-bundle-[UNIQUE_NAME]/default/files... | ||
| Deploying resources... | ||
| Updating deployment state... | ||
| Deployment complete! | ||
|
|
||
| >>> [CLI] vector-search-endpoints get-endpoint test-vs-endpoint-[UNIQUE_NAME] | ||
| { | ||
| "id": "[UUID]", | ||
| "name": "test-vs-endpoint-[UNIQUE_NAME]", | ||
| "endpoint_type": "STANDARD" | ||
| } | ||
|
|
||
| >>> [CLI] bundle deployment unbind endpoint1 | ||
| Updating deployment state... | ||
|
|
||
| >>> [CLI] bundle destroy --auto-approve | ||
| All files and directories at the following location will be deleted: /Workspace/Users/[USERNAME]/.bundle/test-bundle-[UNIQUE_NAME]/default | ||
|
|
||
| Deleting files... | ||
| Destroy complete! | ||
|
|
||
| >>> [CLI] vector-search-endpoints get-endpoint test-vs-endpoint-[UNIQUE_NAME] | ||
| { | ||
| "id": "[UUID]", | ||
| "name": "test-vs-endpoint-[UNIQUE_NAME]", | ||
| "endpoint_type": "STANDARD" | ||
| } | ||
|
|
||
| >>> [CLI] vector-search-endpoints delete-endpoint test-vs-endpoint-[UNIQUE_NAME] |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,23 @@ | ||
| ENDPOINT_NAME="test-vs-endpoint-$UNIQUE_NAME" | ||
| export ENDPOINT_NAME | ||
| envsubst < databricks.yml.tmpl > databricks.yml | ||
|
|
||
| cleanup() { | ||
| trace $CLI vector-search-endpoints delete-endpoint "${ENDPOINT_NAME}" | ||
| } | ||
| trap cleanup EXIT | ||
|
|
||
| trace $CLI vector-search-endpoints create-endpoint "${ENDPOINT_NAME}" STANDARD | jq '{id, name, endpoint_type}' | ||
|
|
||
| trace $CLI bundle deployment bind endpoint1 "${ENDPOINT_NAME}" --auto-approve | ||
|
|
||
| trace $CLI bundle deploy --auto-approve | ||
|
|
||
| trace $CLI vector-search-endpoints get-endpoint "${ENDPOINT_NAME}" | jq '{id, name, endpoint_type}' | ||
|
|
||
| trace $CLI bundle deployment unbind endpoint1 | ||
|
|
||
| trace $CLI bundle destroy --auto-approve | ||
|
|
||
| # Read the pre-defined endpoint again (expecting it still exists and is not deleted): | ||
| trace $CLI vector-search-endpoints get-endpoint "${ENDPOINT_NAME}" | jq '{id, name, endpoint_type}' |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,10 @@ | ||
| Local = true | ||
| Cloud = true | ||
|
|
||
| Ignore = [ | ||
| ".databricks", | ||
| "databricks.yml", | ||
| ] | ||
|
|
||
| [EnvMatrix] | ||
| DATABRICKS_BUNDLE_ENGINE = ["direct"] |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,8 @@ | ||
| bundle: | ||
| name: test-bundle-$UNIQUE_NAME | ||
|
|
||
| resources: | ||
| vector_search_endpoints: | ||
| foo: | ||
| name: test-endpoint-$UNIQUE_NAME | ||
| endpoint_type: STANDARD | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Could you also add another config with permissions? |
||
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,17 @@ | ||
| bundle: | ||
| name: test-bundle | ||
|
|
||
| resources: | ||
| vector_search_endpoints: | ||
| foo: | ||
| name: vs-permissions-endpoint | ||
| endpoint_type: STANDARD | ||
| permissions: | ||
| - level: CAN_USE | ||
| user_name: viewer@example.com | ||
| - level: CAN_MANAGE | ||
| group_name: data-team | ||
| - level: CAN_MANAGE | ||
| service_principal_name: f37d18cd-98a8-4db5-8112-12dd0a6bfe38 | ||
| - level: CAN_MANAGE | ||
| user_name: tester@databricks.com |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,50 @@ | ||
| { | ||
| "plan_version": 2, | ||
| "cli_version": "[DEV_VERSION]", | ||
| "plan": { | ||
| "resources.vector_search_endpoints.foo": { | ||
| "action": "create", | ||
| "new_state": { | ||
| "value": { | ||
| "endpoint_type": "STANDARD", | ||
| "name": "vs-permissions-endpoint" | ||
| } | ||
| } | ||
| }, | ||
| "resources.vector_search_endpoints.foo.permissions": { | ||
| "depends_on": [ | ||
| { | ||
| "node": "resources.vector_search_endpoints.foo", | ||
| "label": "${resources.vector_search_endpoints.foo.endpoint_uuid}" | ||
| } | ||
| ], | ||
| "action": "create", | ||
| "new_state": { | ||
| "value": { | ||
| "object_id": "", | ||
| "__embed__": [ | ||
| { | ||
| "level": "CAN_USE", | ||
| "user_name": "viewer@example.com" | ||
| }, | ||
| { | ||
| "level": "CAN_MANAGE", | ||
| "group_name": "data-team" | ||
| }, | ||
| { | ||
| "level": "CAN_MANAGE", | ||
| "service_principal_name": "[UUID]" | ||
| }, | ||
| { | ||
| "level": "CAN_MANAGE", | ||
| "user_name": "[USERNAME]" | ||
| } | ||
| ] | ||
| }, | ||
| "vars": { | ||
| "object_id": "/vector-search-endpoints/${resources.vector_search_endpoints.foo.endpoint_uuid}" | ||
| } | ||
| } | ||
| } | ||
| } | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,24 @@ | ||
| { | ||
| "method": "PUT", | ||
| "path": "/api/2.0/permissions/vector-search-endpoints/[UUID]", | ||
| "body": { | ||
| "access_control_list": [ | ||
| { | ||
| "permission_level": "CAN_USE", | ||
| "user_name": "viewer@example.com" | ||
| }, | ||
| { | ||
| "group_name": "data-team", | ||
| "permission_level": "CAN_MANAGE" | ||
| }, | ||
| { | ||
| "permission_level": "CAN_MANAGE", | ||
| "service_principal_name": "[UUID]" | ||
| }, | ||
| { | ||
| "permission_level": "CAN_MANAGE", | ||
| "user_name": "[USERNAME]" | ||
| } | ||
| ] | ||
| } | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,4 @@ | ||
| { | ||
| "method": "DELETE", | ||
| "path": "/api/2.0/vector-search/endpoints/vs-permissions-endpoint" | ||
| } |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,35 @@ | ||
|
|
||
| >>> [CLI] bundle validate -o json | ||
| [ | ||
| { | ||
| "level": "CAN_USE", | ||
| "user_name": "viewer@example.com" | ||
| }, | ||
| { | ||
| "group_name": "data-team", | ||
| "level": "CAN_MANAGE" | ||
| }, | ||
| { | ||
| "level": "CAN_MANAGE", | ||
| "service_principal_name": "[UUID]" | ||
| }, | ||
| { | ||
| "level": "CAN_MANAGE", | ||
| "user_name": "[USERNAME]" | ||
| } | ||
| ] | ||
|
|
||
| >>> [CLI] bundle deploy | ||
| Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/test-bundle/default/files... | ||
| Deploying resources... | ||
| Updating deployment state... | ||
| Deployment complete! | ||
|
|
||
| >>> [CLI] bundle destroy --auto-approve | ||
| The following resources will be deleted: | ||
| delete resources.vector_search_endpoints.foo | ||
|
|
||
| All files and directories at the following location will be deleted: /Workspace/Users/[USERNAME]/.bundle/test-bundle/default | ||
|
|
||
| Deleting files... | ||
| Destroy complete! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can be skipped, you get it automatically when running test-update (unless you reference it in some skill / doc, but then it should be part of that PR).