OAI-SE Responses API & Vector Stores MEDIUM
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 change retires idle stores without adding a cleanup service?

Answering here is anonymous. Nothing is saved unless you sign in.

Show answer and explanation

Answer: Create each new store with an expires_after policy anchored to last_active_at

A vector store created with an expires_after policy anchored to last_active_at expires by itself, and once it expires all of its vector_store.file objects are deleted and stop being billed. A file-level expires_after retires the uploaded source file rather than the store, deleting those files through the Files API by hand likewise leaves the store and the parsed chunks and embeddings that storage is billed on, and a nightly sweeper is the cleanup service the requirement rules out.
Free

Keep practicing OAI-SE

24 original OAI-SE practice questions, each with an explanation and a source link. No account needed.

Start free practice set → Timed, explained, free