Interface SemanticChunkingConfiguration.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<SemanticChunkingConfiguration.Builder,,SemanticChunkingConfiguration> SdkBuilder<SemanticChunkingConfiguration.Builder,,SemanticChunkingConfiguration> SdkPojo
- Enclosing class:
SemanticChunkingConfiguration
public static interface SemanticChunkingConfiguration.Builder
extends SdkPojo, CopyableBuilder<SemanticChunkingConfiguration.Builder,SemanticChunkingConfiguration>
-
Method Summary
Modifier and TypeMethodDescriptionbreakpointPercentileThreshold(Integer breakpointPercentileThreshold) The dissimilarity threshold for splitting chunks.bufferSize(Integer bufferSize) The buffer size.The maximum number of tokens that a chunk can contain.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
breakpointPercentileThreshold
SemanticChunkingConfiguration.Builder breakpointPercentileThreshold(Integer breakpointPercentileThreshold) The dissimilarity threshold for splitting chunks.
- Parameters:
breakpointPercentileThreshold- The dissimilarity threshold for splitting chunks.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
bufferSize
The buffer size.
- Parameters:
bufferSize- The buffer size.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
maxTokens
The maximum number of tokens that a chunk can contain.
- Parameters:
maxTokens- The maximum number of tokens that a chunk can contain.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-