Forum Discussion
SiddharthSid
Jun 13, 2024Copper Contributor
Upload a document to Assistant Vector Store
Hello,
I am new to Azure Open AI and looking for a way to upload document to Assistant Vector Store using REST API (HTTPs). I have a limitation and cannot use AzureOpenAI API as I would need to install DLLs in my system. The code should be something like below but I get "Resource not found" in response. Something is off. Please help. Thanks.
Dim apiKey As String = "myapikeyhere"
Dim endpoint As String = "https://myresource.openai.azure.com"
Using client As New HttpClient()
client.DefaultRequestHeaders.Authorization = New AuthenticationHeaderValue("Bearer", apiKey)
Dim url As String = $"{endpoint}/openai/vectorstores?api-version=2024-05-01-preview"
Dim response As HttpResponseMessage = client.GetAsync(url).Result
Console.WriteLine(response)
End Using
- SiddharthSidCopper Contributor
Kidd_Ip there is no installation. I just want to upload document to Vector Store available in Azure Open AI using HTTPs REST APIs. Thanks.
- lindokuhlerajuiliCopper ContributorPosting this since it's relevant to the question I have.
The AI chatbot i am using has the same api version "2024-05-01-preview". I am faced with a limitation where I can only upload 20 files to a vector store, even though the azure AI documentation says the vector store is able to take up to 10 000 files.
Say I upload 30 files, The response returned is successful. When i confirm on the Azure AI studio, the vector store contains only the first 20 files, the remaining files are uploaded somewhere but not linked to either the vector store or assistant, if i chat to the AI about the other missing files... it will tell me that it don't know about the other files.
Anyone experienced the same issue? Is it an issue with maybe the model I am using? If so what other recommended models can I look into?