Interface SemanticChunkingConfiguration.Builder

    • Method Detail

      • 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

        SemanticChunkingConfiguration.Builder bufferSize​(Integer 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

        SemanticChunkingConfiguration.Builder maxTokens​(Integer 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.