I’m trying to upload files to my vector database through a python script but I’m getting the error message Error message: {‘error’: {‘message’: “No valid vector store found with id ‘vs_XXXX’.”, ‘type’: ‘invalid_request_error’, ‘param’: ‘vector_store_id’, ‘code’: None}} even though the database ID is correct.
1 Like
I suspect that there may be an issue with scoping: using an API key from a different project than created the vector store.
Here’s a small Python script in this post that some amazeballs programmer wrote as a demo that is self contained to create a vector store, upload a file, and then attach to the vector store, twice. Then list the attachments with the metadata (filenames that can be used as query terms), and clean up, besides demonstrating the new expiration policy for files and seeing a success status before proceeding. You can check for success with your own local filename to see round-trip all from one API key.