[Error: 404 No file found with id 'file-RXt3Me3fAzy3ZEj9xy6ZLw' in vector store 'vs_68fe949dc6008191ade830d6f9e5935c'.]
Some extra error details: request_id: 'req_0a41b55322de4f5fbf4b7305b808ede6', error: { message: 'No file found with id \'file-RXt3Me3fAzy3ZEj9xy6ZLw\' in vector store \'vs_68fe949dc6008191ade830d6f9e5935c\'.', type: 'invalid_request_error', param: null, code: null }, code: null, param: null, type: 'invalid_request_error' }
However, when I check the vector store via the OpenAI API dashboard, the file exists and is successfully attached to the vector store.
I tried an alternate method of uploading a file to the vector store by doing this:
I can confirm, independent of the polling method the API SDK offers, that the vector store service is broken…again.
This script that is basically a “guaranteed to run” with its own newly-created vector store (and attaching itself as a file name):
openai.NotFoundError: Error code: 404 - {'error': {'message': "No file found with id 'file-DcBL8Kq6ZcRnGdnyDFYirr' in vector store 'vs_68fedd528f60819191cd84d21a5a2a59'.", 'type': 'invalid_request_error', 'param': None, 'code': None}}
I had to add a 5 second sleep before vector_stores.files.retrieve() for success. The API SDK that checks immediately for polling will obviously not be adaptable.
We’re experiencing the same issue. We’re also seeing that the GET endpoint https://api.openai.com/v1/vector_stores/{vector_store_id}/files/{file_id}/content
is failing and consistently returning “Not found”. Meanwhile, the search endpoint is still working.
Error creating files: Error code: 404 - {'error': {'message': "No file found with id 'file-Uzx4KBALYwxHUwbLV8hoGJ' in vector store 'vs_68ff70740380819199a336c074652ac9'.", 'type': 'invalid_request_error', 'param': None, 'code': None}}
Demonstration that will run on your filename to upload:from openai import OpenAI; cl = OpenAI() filename = “vs_meradate_demo.py” vs_id = cl.vector_stores.create(name=”vstest”).id def
@AndiL A note on this issue….I think a side affect of this is that the initial query of a vector store after adding files comes back with a file count of ZERO and a status of “completed” even though the vector creation process returned a file count of X (in my case 1) and “in_progress”.
If I poll the vector store until I actually get a file count, the status pops back to “in_progress” and I continue to pull until it now CORRECTLY shows a status of “completed”.
I would expect the initial retrieval of the vector store to have a correct file count and correct status of “in_progress”.
Would be great if this issue is fixed, but that is a workaround instead of waiting a random time and hoping the file is available.