Interface SemanticChunkingConfiguration.Builder

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