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 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.