-3

I want to fill the vector memory of my project in Azure AI Foundry via a CURL command. I use the way described in the documentation

Uploading the file, which apparently has to be done before adding the file to the vector store, works fine. But adding the same file to the vector store does not work - the command, the variables you see below are unchanged and work for the CURL command that first uploads the file.

This is the command:

curl --request POST \ --url "$AZURE_AI_FOUNDRY_PROJECT_ENDPOINT/vector_stores/vs_v383i2msmd8939d/files?api-version=2025-05-01" \ -H "Authorization: Bearer $ACCESS_TOKEN" \ -H "Content-Type: application/json" \ -d "{"file_id": "$FILE_ID"}"

The error message I get is:

"error": {
"message": "No vector store found with id 'vs_v383i2msmd8939d'.",
"type": "invalid_request_error",
"param": null,
"code": null
}

The vector store is definitely available and I could also upload this file manually, but I would like to do this automatically via a CI/CD pipeline, where this CURL command is then executed.

6
  • 1
    Is the error correct perhaps? Are you sure the ID is correct? You can use GET to get a list of vector stores. Does the ID appear in there? Commented Jul 3 at 11:52
  • Yes, it appears when I use the GET endpoint. But when I call the store with its ID, it simply says: "No vector store found with id <...>" Commented Jul 3 at 12:36
  • Solution found - it took some time until the created vector stores actually appeared in the Azure AI Foundry Portal. I opened several tabs and reloaded them with CTRL+F5 - one tab contained the vector stores and the uploaded files, while other tabs did not. Seems like there are some synchronisation errors or something. Just reload the page more often, clear the cache, wait and see. :-/ Commented Jul 3 at 13:04
  • You mean GET showed they existed in a good status, but they couldn't be used until they also appeared in the portal? That's probably a bug. It's also worth posting an answer explaining this, especially if GET showed eg status:completed Commented Jul 3 at 13:06
  • Yes, "status: completed". So the stores were available and ready. Commented Jul 3 at 13:10

1 Answer 1

0

Status ‘completed’ apparently does not mean that the storage is already complete. Just reload the page more often, clear the cache, wait and see. 🤷‍♂️

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.