Class VectorStoreFile.Builder
-
- All Implemented Interfaces:
public final class VectorStoreFile.BuilderA builder for VectorStoreFile.
-
-
Method Summary
Modifier and Type Method Description final VectorStoreFile.Builderid(String id)The identifier, which can be referenced in API endpoints. final VectorStoreFile.Builderid(JsonField<String> id)The identifier, which can be referenced in API endpoints. final VectorStoreFile.BuildercreatedAt(Long createdAt)The Unix timestamp (in seconds) for when the vector store file was created. final VectorStoreFile.BuildercreatedAt(JsonField<Long> createdAt)The Unix timestamp (in seconds) for when the vector store file was created. final VectorStoreFile.BuilderlastError(VectorStoreFile.LastError lastError)The last error associated with this vector store file. final VectorStoreFile.BuilderlastError(Optional<VectorStoreFile.LastError> lastError)The last error associated with this vector store file. final VectorStoreFile.BuilderlastError(JsonField<VectorStoreFile.LastError> lastError)The last error associated with this vector store file. final VectorStoreFile.Builderobject_(JsonValue object_)The object type, which is always vector_store.file.final VectorStoreFile.Builderstatus(VectorStoreFile.Status status)The status of the vector store file, which can be either in_progress,completed,cancelled, orfailed.final VectorStoreFile.Builderstatus(JsonField<VectorStoreFile.Status> status)The status of the vector store file, which can be either in_progress,completed,cancelled, orfailed.final VectorStoreFile.BuilderusageBytes(Long usageBytes)The total vector store usage in bytes. final VectorStoreFile.BuilderusageBytes(JsonField<Long> usageBytes)The total vector store usage in bytes. final VectorStoreFile.BuildervectorStoreId(String vectorStoreId)The ID of the vector store that the File is attached to. final VectorStoreFile.BuildervectorStoreId(JsonField<String> vectorStoreId)The ID of the vector store that the File is attached to. final VectorStoreFile.Builderattributes(VectorStoreFile.Attributes attributes)Set of 16 key-value pairs that can be attached to an object. final VectorStoreFile.Builderattributes(Optional<VectorStoreFile.Attributes> attributes)Set of 16 key-value pairs that can be attached to an object. final VectorStoreFile.Builderattributes(JsonField<VectorStoreFile.Attributes> attributes)Set of 16 key-value pairs that can be attached to an object. final VectorStoreFile.BuilderchunkingStrategy(FileChunkingStrategy chunkingStrategy)The strategy used to chunk the file. final VectorStoreFile.BuilderchunkingStrategy(JsonField<FileChunkingStrategy> chunkingStrategy)The strategy used to chunk the file. final VectorStoreFile.BuilderchunkingStrategy(StaticFileChunkingStrategyObject static_)The strategy used to chunk the file. final VectorStoreFile.BuilderchunkingStrategy(OtherFileChunkingStrategyObject other)This is returned when the chunking strategy is unknown. final VectorStoreFile.BuilderstaticChunkingStrategy(StaticFileChunkingStrategy static_)The strategy used to chunk the file. final VectorStoreFile.BuilderadditionalProperties(Map<String, JsonValue> additionalProperties)final VectorStoreFile.BuilderputAdditionalProperty(String key, JsonValue value)final VectorStoreFile.BuilderputAllAdditionalProperties(Map<String, JsonValue> additionalProperties)final VectorStoreFile.BuilderremoveAdditionalProperty(String key)final VectorStoreFile.BuilderremoveAllAdditionalProperties(Set<String> keys)final VectorStoreFilebuild()-
-
Method Detail
-
id
final VectorStoreFile.Builder id(String id)
The identifier, which can be referenced in API endpoints.
-
id
final VectorStoreFile.Builder id(JsonField<String> id)
The identifier, which can be referenced in API endpoints.
-
createdAt
final VectorStoreFile.Builder createdAt(Long createdAt)
The Unix timestamp (in seconds) for when the vector store file was created.
-
createdAt
final VectorStoreFile.Builder createdAt(JsonField<Long> createdAt)
The Unix timestamp (in seconds) for when the vector store file was created.
-
lastError
final VectorStoreFile.Builder lastError(VectorStoreFile.LastError lastError)
The last error associated with this vector store file. Will be
nullif there are no errors.
-
lastError
final VectorStoreFile.Builder lastError(Optional<VectorStoreFile.LastError> lastError)
The last error associated with this vector store file. Will be
nullif there are no errors.
-
lastError
final VectorStoreFile.Builder lastError(JsonField<VectorStoreFile.LastError> lastError)
The last error associated with this vector store file. Will be
nullif there are no errors.
-
object_
final VectorStoreFile.Builder object_(JsonValue object_)
The object type, which is always
vector_store.file.
-
status
final VectorStoreFile.Builder status(VectorStoreFile.Status status)
The status of the vector store file, which can be either
in_progress,completed,cancelled, orfailed. The statuscompletedindicates that the vector store file is ready for use.
-
status
final VectorStoreFile.Builder status(JsonField<VectorStoreFile.Status> status)
The status of the vector store file, which can be either
in_progress,completed,cancelled, orfailed. The statuscompletedindicates that the vector store file is ready for use.
-
usageBytes
final VectorStoreFile.Builder usageBytes(Long usageBytes)
The total vector store usage in bytes. Note that this may be different from the original file size.
-
usageBytes
final VectorStoreFile.Builder usageBytes(JsonField<Long> usageBytes)
The total vector store usage in bytes. Note that this may be different from the original file size.
-
vectorStoreId
final VectorStoreFile.Builder vectorStoreId(String vectorStoreId)
The ID of the vector store that the File is attached to.
-
vectorStoreId
final VectorStoreFile.Builder vectorStoreId(JsonField<String> vectorStoreId)
The ID of the vector store that the File is attached to.
-
attributes
final VectorStoreFile.Builder attributes(VectorStoreFile.Attributes attributes)
Set of 16 key-value pairs that can be attached to an object. This can be useful for storing additional information about the object in a structured format, and querying for objects via API or the dashboard. Keys are strings with a maximum length of 64 characters. Values are strings with a maximum length of 512 characters, booleans, or numbers.
-
attributes
final VectorStoreFile.Builder attributes(Optional<VectorStoreFile.Attributes> attributes)
Set of 16 key-value pairs that can be attached to an object. This can be useful for storing additional information about the object in a structured format, and querying for objects via API or the dashboard. Keys are strings with a maximum length of 64 characters. Values are strings with a maximum length of 512 characters, booleans, or numbers.
-
attributes
final VectorStoreFile.Builder attributes(JsonField<VectorStoreFile.Attributes> attributes)
Set of 16 key-value pairs that can be attached to an object. This can be useful for storing additional information about the object in a structured format, and querying for objects via API or the dashboard. Keys are strings with a maximum length of 64 characters. Values are strings with a maximum length of 512 characters, booleans, or numbers.
-
chunkingStrategy
final VectorStoreFile.Builder chunkingStrategy(FileChunkingStrategy chunkingStrategy)
The strategy used to chunk the file.
-
chunkingStrategy
final VectorStoreFile.Builder chunkingStrategy(JsonField<FileChunkingStrategy> chunkingStrategy)
The strategy used to chunk the file.
-
chunkingStrategy
final VectorStoreFile.Builder chunkingStrategy(StaticFileChunkingStrategyObject static_)
The strategy used to chunk the file.
-
chunkingStrategy
final VectorStoreFile.Builder chunkingStrategy(OtherFileChunkingStrategyObject other)
This is returned when the chunking strategy is unknown. Typically, this is because the file was indexed before the
chunking_strategyconcept was introduced in the API.
-
staticChunkingStrategy
final VectorStoreFile.Builder staticChunkingStrategy(StaticFileChunkingStrategy static_)
The strategy used to chunk the file.
-
additionalProperties
final VectorStoreFile.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final VectorStoreFile.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final VectorStoreFile.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final VectorStoreFile.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final VectorStoreFile.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final VectorStoreFile build()
-
-
-
-