Need help resolving tool_user_error: Error: search_vectorization_error; Azure AI Search was unable to vectorize the search query. () Could not complete vectorization action.

Choi Daniel 0 Reputation points
2025-11-11T07:23:03.4+00:00

User's image

I have already set up access to Azure Storage and deployed two models for this project, but now I'm getting this error when I attempt to make my agent perform RAG operations. Any help would be appreciated

tool_user_error: Error: search_vectorization_error; Azure AI Search was unable to vectorize the search query. () Could not complete vectorization action. The service failed to authenticate to the vectorization endpoint. Code: Message: Could not complete vectorization action. The service failed to authenticate to the vectorization endpoint. RunId: run_c2h7GzbacasJeSBHnXS9tVVm

Azure AI Search
Azure AI Search
An Azure search service with built-in artificial intelligence capabilities that enrich information to help identify and explore relevant content at scale.
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Deepanshu katara 17,970 Reputation points MVP Moderator
    2025-11-11T09:57:49.0733333+00:00

    Hi, Welcome to MS Q&A

    The error you’re encountering —

    “Could not complete vectorization action. The service failed to authenticate to the vectorization endpoint.” — is typically an authentication/authorization issue between Azure AI Search and the embedding model endpoint (such as Azure OpenAI Service). Here are the key causes and a step-by-step checklist to resolve it.

    Common causes & fixes

    • The search service’s managed identity or service principal isn’t granted permission to call the embedding model. Microsoft Learn+2Microsoft Learn+2
    • API key or endpoint used in the vectorizer configuration is incorrect or missing. Microsoft Learn+2Microsoft Learn+2
    • Network restrictions (firewalls/private endpoints) impede the search service from reaching the vectorization endpoint. Microsoft Learn+2Azure Documentation+2
    • The vectorizer configuration (in the index definition) is mis-aligned (wrong model name, deployment Id, or version) so the call fails authentication. GitHub+1

    Pls check link share above for fix

    Thanks

    Deepanshu

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.