Class BetaThreadCreateAndRunParams.Thread.ToolResources.FileSearch.VectorStore.Builder
-
- All Implemented Interfaces:
public final class BetaThreadCreateAndRunParams.Thread.ToolResources.FileSearch.VectorStore.Builder
A builder for VectorStore.
-
-
Method Summary
-
-
Method Detail
-
chunkingStrategy
final BetaThreadCreateAndRunParams.Thread.ToolResources.FileSearch.VectorStore.Builder chunkingStrategy(FileChunkingStrategyParam chunkingStrategy)
The chunking strategy used to chunk the file(s). If not set, will use the
auto
strategy. Only applicable iffile_ids
is non-empty.
-
chunkingStrategy
final BetaThreadCreateAndRunParams.Thread.ToolResources.FileSearch.VectorStore.Builder chunkingStrategy(JsonField<FileChunkingStrategyParam> chunkingStrategy)
The chunking strategy used to chunk the file(s). If not set, will use the
auto
strategy. Only applicable iffile_ids
is non-empty.
-
chunkingStrategy
final BetaThreadCreateAndRunParams.Thread.ToolResources.FileSearch.VectorStore.Builder chunkingStrategy(AutoFileChunkingStrategyParam auto)
The default strategy. This strategy currently uses a
max_chunk_size_tokens
of800
andchunk_overlap_tokens
of400
.
-
chunkingStrategy
final BetaThreadCreateAndRunParams.Thread.ToolResources.FileSearch.VectorStore.Builder chunkingStrategy(StaticFileChunkingStrategyObjectParam static_)
The chunking strategy used to chunk the file(s). If not set, will use the
auto
strategy. Only applicable iffile_ids
is non-empty.
-
staticChunkingStrategy
final BetaThreadCreateAndRunParams.Thread.ToolResources.FileSearch.VectorStore.Builder staticChunkingStrategy(StaticFileChunkingStrategy static_)
The chunking strategy used to chunk the file(s). If not set, will use the
auto
strategy. Only applicable iffile_ids
is non-empty.
-
fileIds
final BetaThreadCreateAndRunParams.Thread.ToolResources.FileSearch.VectorStore.Builder fileIds(List<String> fileIds)
A list of file IDs to add to the vector store. There can be a maximum of 10000 files in a vector store.
-
fileIds
final BetaThreadCreateAndRunParams.Thread.ToolResources.FileSearch.VectorStore.Builder fileIds(JsonField<List<String>> fileIds)
A list of file IDs to add to the vector store. There can be a maximum of 10000 files in a vector store.
-
addFileId
final BetaThreadCreateAndRunParams.Thread.ToolResources.FileSearch.VectorStore.Builder addFileId(String fileId)
A list of file IDs to add to the vector store. There can be a maximum of 10000 files in a vector store.
-
metadata
final BetaThreadCreateAndRunParams.Thread.ToolResources.FileSearch.VectorStore.Builder metadata(Metadata metadata)
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.
-
metadata
final BetaThreadCreateAndRunParams.Thread.ToolResources.FileSearch.VectorStore.Builder metadata(Optional<Metadata> metadata)
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.
-
metadata
final BetaThreadCreateAndRunParams.Thread.ToolResources.FileSearch.VectorStore.Builder metadata(JsonField<Metadata> metadata)
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.
-
additionalProperties
final BetaThreadCreateAndRunParams.Thread.ToolResources.FileSearch.VectorStore.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final BetaThreadCreateAndRunParams.Thread.ToolResources.FileSearch.VectorStore.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final BetaThreadCreateAndRunParams.Thread.ToolResources.FileSearch.VectorStore.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final BetaThreadCreateAndRunParams.Thread.ToolResources.FileSearch.VectorStore.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final BetaThreadCreateAndRunParams.Thread.ToolResources.FileSearch.VectorStore.Builder removeAllAdditionalProperties(Set<String> keys)
-
-
-
-