Vector Stores lose the files associated with them

I’ve been encountered this in the last months.

I have two vector stores for test and production. With two files each linked to them. The files are still in the account, but eventually the vector stores lose them. Vs dont have an expiration.

I’m using this procedure for handling vector stores, the script does the following:
clear the files associated with the vector store, leaving them intact, delete all the files in the account, upload new files to the account, link the new files to the vector stores.

This said, let’s say after one week, the vector stores will be empty.
I really have no explanation.

The default expiry time for a vector store is 7 days, you can change this by adding the argument “expires_after”.

1 Like

Thanks for the answer!

Where did you get this information? It’s not in the api reference at all.
https://platform.openai.com/docs/api-reference/vector-stores/create

Also, if you dont set the expires_after field, it will show {…, expires_after: null}, when querying it. This suggested me that it simply didn’t expire.

Read it here: here.. I had the same problem, when I created vector stores with the tool file search, I would see in my “Storage” page that the expiry was set for 7 days, now I have it for 100 days using the parameter. The only documentation I can find on it though is through here: Azure Open AI.

UPDATE:
Found it on the official one now: Open AI docs

1 Like