Hi,
I want to add files to an existing vector store, instead of creating a new vector store each time.
Right now, as I understand from the documentation , the only way to add files to an existing vector store, is retrieving all the files_ids from the vector store, add the files I want to that list of files, and create a new vector store, with ‘beta.vector_stores.file_batches.create_and_poll’, which seems a long process and I will have to keep deleting old versions of the vector store I want to keep…
How lucky I am to see Alberto’s post about too short.
While using openai.beta.vectorStores.fileBatches.uploadAndPoll, I was frustrated that the status of the request was failed but I was seeing the files in the vector store.
My only question is how could you find, the file size was the reason?
hello Alberto. Just in case, have not come across a case of modifying already existing file batch. For example, there is already an existing file batch with 3 files. And i wanna add one more file to this existing file batch.
If I have all the files I want to attach to a vector store in my files area, is there a way to get a list of all those file_ids?
Struggling to move these files from the files area to the vector store I want them in, and I can only seem to get an upload to work when I grab each file ID individually and create an array of them.
You can list all the files with “assistants” purpose. There’s an API method for that, returning 10000 at a time.
However, a typical organization will have tons of unrelated files, even just attachments to user messages. Your application database must keep track of the file IDs that you upload and connect to vector store, by Assistant intention or purpose.
There’s no bulk uploader of files, which could be convenient. Sending all the files individually as required, in parallel, could be a speedup, but only because of bandwidth allotted to a single connection.