400 Vector store size limit reached

Hello OpenAI Support,

I am frequently encountering the following issue while using the Assistant API in my NestJS project:

400 Bad Request: Vector store size limit reached

Context:

  • I’m creating assistants with uploaded files using the Assistant API.
  • These files are linked via a vector store.
  • The issue arises during assistant creation or file uploads.
  • The only workaround so far is manually deleting old vector stores, after which it works again temporarily.

Questions:

  1. What is the vector store size limit (in number of files or total size)?
  2. Is there a best practice to manage or clean up vector stores automatically?
  3. Can I increase this limit for my organization or use a shared vector store for multiple assistants?

Please advise on how to avoid this issue going forward.

Thanks,

I don’t know if there is a file amount limit, but you cannot exceed 100gb in all your file storage:

Upload a file that can be used across various endpoints. Individual files can be up to 512 MB, and the size of all files uploaded by one organization can be up to 100 GB.
[…] Please contact us if you need to increase these storage limits.

As for best practice, vector stores are supposed to be for reusable content, like context for RAG. If you are only doing a user session usage, you should delete them afterwards its expiration.

I’m not sure if assistants API allow reusage of vector stores, but the responses API does for sure. Since assistants is getting deprecated, it would be advisable to consider migrating.