Class BetaThreadCreateAndRunParams.Thread.ToolResources.FileSearch.VectorStore.Builder
-
- All Implemented Interfaces:
public final class BetaThreadCreateAndRunParams.Thread.ToolResources.FileSearch.VectorStore.Builder
-
-
Constructor Summary
Constructors Constructor Description BetaThreadCreateAndRunParams.Thread.ToolResources.FileSearch.VectorStore.Builder()
-
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 autoFileChunkingStrategyParam)
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 staticFileChunkingStrategyObjectParam)
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(JsonValue metadata)
Set of 16 key-value pairs that can be attached to a vector store. This can be useful for storing additional information about the vector store in a structured format. Keys can be a maximum of 64 characters long and values can be a maximum of 512 characters long.
-
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)
-
-
-
-