class

OpenAI::VectorStoreFileObject

Inherits JSON::Serializable < Reference < Object

A list of files attached to a vector store.

Constructors

new(id : String = "", object : VectorStoreFileObjectObject = VectorStoreFileObjectObject::VectorStoreFile, usage_bytes : Int64 = 0, created_at : Int64 = 0, vector_store_id : String = "", status : VectorStoreFileObjectStatus = VectorStoreFileObjectStatus::InProgress, last_error : VectorStoreFileObjectLastError = nil, chunking_strategy : ChunkingStrategyResponse | Nil = nil, attributes : VectorStoreFileAttributes | Nil = nil)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

attributes
Source
attributes=(attributes : VectorStoreFileAttributes | Nil)
Source
chunking_strategy
Source
chunking_strategy=(chunking_strategy : ChunkingStrategyResponse | Nil)
Source
created_at

The Unix timestamp (in seconds) for when the vector store file was created.

Source
created_at=(created_at : Int64)

The Unix timestamp (in seconds) for when the vector store file was created.

Source
id

The identifier, which can be referenced in API endpoints.

Source
id=(id : String)

The identifier, which can be referenced in API endpoints.

Source
last_error
Source
last_error=(last_error : VectorStoreFileObjectLastError)
Source
object

The object type, which is always vector_store.file.

Source
object=(object : VectorStoreFileObjectObject)

The object type, which is always vector_store.file.

Source
status

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.

Source
status=(status : VectorStoreFileObjectStatus)

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.

Source
usage_bytes

The total vector store usage in bytes. Note that this may be different from the original file size.

Source
usage_bytes=(usage_bytes : Int64)

The total vector store usage in bytes. Note that this may be different from the original file size.

Source
vector_store_id

The ID of the vector store that the File is attached to.

Source
vector_store_id=(vector_store_id : String)

The ID of the vector store that the File is attached to.

Source