VectorStoreFile R6 class
VectorStoreFile R6 class
Public fields
id
Character. The ID of the vector store file.
created_at
POSIXct. The time the vector store file was created.
usage_bytes
Integer. The number of bytes used by the vector store file.
vector_store_id
Character. The ID of the vector store that the file belongs to.
status
Character. The status of the vector store file. One of "in_progress", "completed", "failed", "cancelled".
last_error
Character. The last error that occurred while processing the file.
chunking_strategy
List. The strategy used to chunk the data.
Methods
Method new()
Initialize a new VectorStoreFile object. Either provide a vector_store_file_id or a vector_store_id together with a file_id or a path to a file.
Usage
VectorStoreFile$new(
vector_store_file_id = NULL,
vector_store_id = NULL,
file_id = NULL,
path = NULL,
resp = NULL
)
Arguments
vector_store_file_id
Character. The ID of the vector store file.
vector_store_id
Character. The ID of the vector store that the file belongs to.
file_id
Character. The ID of the file that the vector store file is associated with.
path
Character. The path to the file that the vector store file is associated with.
resp
List. The response object from the OpenAI API.
Method update()
Update the vector store file in the OpenAI API.
Method print()
Print the vector store file.