Skip to main content

vector_store_files

Overview

Namevector_store_files
TypeResource
Idopenai.vector_stores.vector_store_files

Fields

NameDatatypeDescription
idstringThe identifier, which can be referenced in API endpoints.
chunking_strategyobjectThe strategy used to chunk the file.
created_atintegerThe Unix timestamp (in seconds) for when the vector store file was created.
last_errorobjectThe last error associated with this vector store file. Will be null if there are no errors.
objectstringThe object type, which is always vector_store.file.
statusstringThe status of the vector store file, which can be either in_progress, completed, cancelled, or failed. The status completed indicates that the vector store file is ready for use.
usage_bytesintegerThe total vector store usage in bytes. Note that this may be different from the original file size.
vector_store_idstringThe ID of the vector store that the File is attached to.

Methods

NameAccessible byRequired Params
get_vector_store_fileSELECTfile_id, vector_store_id
list_vector_store_filesSELECTvector_store_id
create_vector_store_fileINSERTvector_store_id, data__file_id
delete_vector_store_fileDELETEfile_id, vector_store_id