Hello Elliot Fraser,
Welcome to the Microsoft Q&A and thank you for posting your questions here.
I understand that your Azure Open AI - vector_store, or search API not working.
Many users do have similar issues, and the critical part is that 404 error when using the Azure OpenAI vector store search API can occur due to several reasons, even if your endpoint and vector store ID are correct. You might need multiple steps to troubleshoot this issue.
While check the root cause via your logs, try the followings:
- A malformed payload can trigger a 404, check the search API expects a JSON body with your request includes
queries
:{ "queries": [ { "text": "your search query", "top_k": 5, "embedding_model": "text-embedding-ada-002" // or your chosen model } ] }
- If you recently uploaded files to the vector store, wait for indexing to complete. Use the get vector store status API - https://learn.microsoft.com/en-us/azure/ai-services/openai/reference-preview#get-vector-store to verify:
GET https://{endpoint}/openai/vector_stores/{vector_store_id}?api-version=2024-03-01-preview
Check if `"status": "ready"`.
- Verify that your account has the necessary permissions: Go to Azure portal > your OpenAI resource > Access Control (IAM) > confirm your account has
Cognitive Services OpenAI User
orContributor
roles. - Also, check the regional availability, because Azure OpenAI resource should be in a region that supports the Vector Store API - https://learn.microsoft.com/en-us/answers/questions/2148544/new-vector-stores-for-azure-openai-assistants-fail
- Use curl or Postman to test the API call directly:
This helps isolate SDK/application-specific issues - https://community.openai.com/t/azure-open-ai-api-endpoint-404-resource-not-found/650881curl -X POST "https://YOUR_RESOURCE.openai.azure.com/openai/vector_stores/vs-YOUR_ID/search?api-version=2025-03-01-preview" \ -H "api-key: YOUR_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "queries": [ { "text": "test query", "top_k": 3 } ] }'
I hope this is helpful! Do not hesitate to let me know if you have any other questions or clarifications.
Please don't forget to close up the thread here by upvoting and accept it as an answer if it is helpful.