Class VectorStoreFile
-
- All Implemented Interfaces:
public final class VectorStoreFile
A list of files attached to a vector store.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final class
VectorStoreFile.Builder
A builder for VectorStoreFile.
public final class
VectorStoreFile.LastError
The last error associated with this vector store file. Will be
null
if there are no errors.public final class
VectorStoreFile.Status
The status of the vector store file, which can be either
in_progress
,completed
,cancelled
, orfailed
. The statuscompleted
indicates that the vector store file is ready for use.
-
Method Summary
Modifier and Type Method Description final String
id()
The identifier, which can be referenced in API endpoints. final Long
createdAt()
The Unix timestamp (in seconds) for when the vector store file was created. final Optional<VectorStoreFile.LastError>
lastError()
The last error associated with this vector store file. final JsonValue
_object_()
The object type, which is always vector_store.file
.final VectorStoreFile.Status
status()
The status of the vector store file, which can be either in_progress
,completed
,cancelled
, orfailed
.final Long
usageBytes()
The total vector store usage in bytes. final String
vectorStoreId()
The ID of the vector store that the File is attached to. final Optional<FileChunkingStrategy>
chunkingStrategy()
The strategy used to chunk the file. final JsonField<String>
_id()
The identifier, which can be referenced in API endpoints. final JsonField<Long>
_createdAt()
The Unix timestamp (in seconds) for when the vector store file was created. final JsonField<VectorStoreFile.LastError>
_lastError()
The last error associated with this vector store file. final JsonField<VectorStoreFile.Status>
_status()
The status of the vector store file, which can be either in_progress
,completed
,cancelled
, orfailed
.final JsonField<Long>
_usageBytes()
The total vector store usage in bytes. final JsonField<String>
_vectorStoreId()
The ID of the vector store that the File is attached to. final JsonField<FileChunkingStrategy>
_chunkingStrategy()
The strategy used to chunk the file. final Map<String, JsonValue>
_additionalProperties()
final VectorStoreFile
validate()
final VectorStoreFile.Builder
toBuilder()
Boolean
equals(Object other)
Integer
hashCode()
String
toString()
final static VectorStoreFile.Builder
builder()
-
-
Method Detail
-
createdAt
final Long createdAt()
The Unix timestamp (in seconds) for when the vector store file was created.
-
lastError
final Optional<VectorStoreFile.LastError> lastError()
The last error associated with this vector store file. Will be
null
if there are no errors.
-
status
final VectorStoreFile.Status status()
The status of the vector store file, which can be either
in_progress
,completed
,cancelled
, orfailed
. The statuscompleted
indicates that the vector store file is ready for use.
-
usageBytes
final Long usageBytes()
The total vector store usage in bytes. Note that this may be different from the original file size.
-
vectorStoreId
final String vectorStoreId()
The ID of the vector store that the File is attached to.
-
chunkingStrategy
final Optional<FileChunkingStrategy> chunkingStrategy()
The strategy used to chunk the file.
-
_createdAt
final JsonField<Long> _createdAt()
The Unix timestamp (in seconds) for when the vector store file was created.
-
_lastError
final JsonField<VectorStoreFile.LastError> _lastError()
The last error associated with this vector store file. Will be
null
if there are no errors.
-
_status
final JsonField<VectorStoreFile.Status> _status()
The status of the vector store file, which can be either
in_progress
,completed
,cancelled
, orfailed
. The statuscompleted
indicates that the vector store file is ready for use.
-
_usageBytes
final JsonField<Long> _usageBytes()
The total vector store usage in bytes. Note that this may be different from the original file size.
-
_vectorStoreId
final JsonField<String> _vectorStoreId()
The ID of the vector store that the File is attached to.
-
_chunkingStrategy
final JsonField<FileChunkingStrategy> _chunkingStrategy()
The strategy used to chunk the file.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
validate
final VectorStoreFile validate()
-
toBuilder
final VectorStoreFile.Builder toBuilder()
-
builder
final static VectorStoreFile.Builder builder()
-
-
-
-