How to authenticate Vector Search Retriever Tool in Databricks AI Agent App?
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-22-2025 11:00 PM
I’m getting the following error while building a Databricks AI Agent app:
databricks.vector_search.exceptions.InvalidInputException: Please specify either personal access token or service principal client ID and secret.
My code looks like this:
vector_search_tools = [ VectorSearchRetrieverTool( index_name="vs_endpoint" ) ]
I tried passing a Databricks PAT token, but I still see the same error. Do I need to provide a client ID and secret as well? From my understanding, the service principal for app is Databricks-managed and created automatically—so how can I get the credentials?