Retrieves a vector store file.
GET /vector_stores/{vector_store_id}/files/{file_id}
Authorizations
Parameters
Path Parameters
The ID of the vector store that the file belongs to.
The ID of the file being retrieved.
Responses
200
OK
A list of files attached to a vector store.
object
The identifier, which can be referenced in API endpoints.
The object type, which is always vector_store.file
.
The total vector store usage in bytes. Note that this may be different from the original file size.
The Unix timestamp (in seconds) for when the vector store file was created.
The ID of the vector store that the File is attached to.
The 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.
The last error associated with this vector store file. Will be null
if there are no errors.
object
One of server_error
or rate_limit_exceeded
.
A human-readable description of the error.
object
Always static
.
object
The maximum number of tokens in each chunk. The default value is 800
. The minimum value is 100
and the maximum value is 4096
.
The number of tokens that overlap between chunks. The default value is 400
.
Note that the overlap must not exceed half of max_chunk_size_tokens
.
This is returned when the chunking strategy is unknown. Typically, this is because the file was indexed before the chunking_strategy
concept was introduced in the API.
object
Always other
.