PRODUCTION SCENARIO
Halden Support creates a new vector store for every support ticket so the model can search that ticket's attachments. After three months the account holds 18,000 idle stores and storage is far past the free 1 GB tier.
Which setting removes idle stores automatically?
Answering here is anonymous. Nothing is saved unless you sign in.
Show answer and explanation
Answer: Create each store with an expires_after policy keyed to last_active_at
A vector store created with an expires_after policy expires on its own, and once it expires all of its vector_store.file objects are deleted and no longer billed. Response retention is unrelated to vector store storage, and smaller chunks do not remove idle stores.
Official Source: https://developers.openai.com/api/docs/guides/retrieval ↗