Class: Xberg::ChunkingConfig

Inherits:
Object
  • Object
show all
Defined in:
sig/types.rbs

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeChunkingConfig

Returns a new instance of ChunkingConfig.

Parameters:



449
# File 'sig/types.rbs', line 449

def initialize: (?max_characters: Integer, ?overlap: Integer, ?trim: bool, ?chunker_type: ChunkerType, ?embedding: EmbeddingConfig, ?preset: String, ?sizing: ChunkSizing, ?prepend_heading_context: bool, ?topic_threshold: Float, ?table_chunking: TableChunkingMode) -> void

Instance Attribute Details

#chunker_typeChunkerType?

Returns the value of attribute chunker_type.

Returns:



441
442
443
# File 'sig/types.rbs', line 441

def chunker_type
  @chunker_type
end

#embeddingEmbeddingConfig?

Returns the value of attribute embedding.

Returns:



442
443
444
# File 'sig/types.rbs', line 442

def embedding
  @embedding
end

#max_charactersInteger?

Returns the value of attribute max_characters.

Returns:

  • (Integer, nil)


438
439
440
# File 'sig/types.rbs', line 438

def max_characters
  @max_characters
end

#overlapInteger?

Returns the value of attribute overlap.

Returns:

  • (Integer, nil)


439
440
441
# File 'sig/types.rbs', line 439

def overlap
  @overlap
end

#prepend_heading_contextBoolean?

Returns the value of attribute prepend_heading_context.

Returns:

  • (Boolean, nil)


445
446
447
# File 'sig/types.rbs', line 445

def prepend_heading_context
  @prepend_heading_context
end

#presetString?

Returns the value of attribute preset.

Returns:

  • (String, nil)


443
444
445
# File 'sig/types.rbs', line 443

def preset
  @preset
end

#sizingChunkSizing?

Returns the value of attribute sizing.

Returns:



444
445
446
# File 'sig/types.rbs', line 444

def sizing
  @sizing
end

#table_chunkingTableChunkingMode?

Returns the value of attribute table_chunking.

Returns:



447
448
449
# File 'sig/types.rbs', line 447

def table_chunking
  @table_chunking
end

#topic_thresholdFloat?

Returns the value of attribute topic_threshold.

Returns:

  • (Float, nil)


446
447
448
# File 'sig/types.rbs', line 446

def topic_threshold
  @topic_threshold
end

#trimBoolean?

Returns the value of attribute trim.

Returns:

  • (Boolean, nil)


440
441
442
# File 'sig/types.rbs', line 440

def trim
  @trim
end

Class Method Details

.defaultChunkingConfig

Returns:



450
# File 'sig/types.rbs', line 450

def self.default: () -> ChunkingConfig