Add a file to a vector store. The file will be asynchronously indexed.
POST
/vector_stores/{vector_store_id}/files
Authorization
AuthorizationRequiredBearer <token>
In: header
Request Body
application/jsonRequiredfile_idRequiredstring
The ID of the file to add (from the Files API).
chunking_strategyobject
Only {"type": "auto"} is supported.
attributesobject
Key-value attributes for the file (max 16 keys, key max 64 chars, values: string max 512 chars, number, or boolean).
Path Parameters
vector_store_idRequiredstring
The ID of the vector store.
Example
Request
Response
Delete vector store
Delete a vector store and every file and vector indexed in it. Covers the path parameter, the deletion confirmation object (id, object, deleted), and an example request and response.
List files in vector store
List the files in a vector store. Covers the pagination and status filter parameters (limit, order, after, before, filter), the list object returned, and an example request and response.