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:



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

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:



425
426
427
# File 'sig/types.rbs', line 425

def chunker_type
  @chunker_type
end

#embeddingEmbeddingConfig?

Returns the value of attribute embedding.

Returns:



426
427
428
# File 'sig/types.rbs', line 426

def embedding
  @embedding
end

#max_charactersInteger?

Returns the value of attribute max_characters.

Returns:

  • (Integer, nil)


422
423
424
# File 'sig/types.rbs', line 422

def max_characters
  @max_characters
end

#overlapInteger?

Returns the value of attribute overlap.

Returns:

  • (Integer, nil)


423
424
425
# File 'sig/types.rbs', line 423

def overlap
  @overlap
end

#prepend_heading_contextBoolean?

Returns the value of attribute prepend_heading_context.

Returns:

  • (Boolean, nil)


429
430
431
# File 'sig/types.rbs', line 429

def prepend_heading_context
  @prepend_heading_context
end

#presetString?

Returns the value of attribute preset.

Returns:

  • (String, nil)


427
428
429
# File 'sig/types.rbs', line 427

def preset
  @preset
end

#sizingChunkSizing?

Returns the value of attribute sizing.

Returns:



428
429
430
# File 'sig/types.rbs', line 428

def sizing
  @sizing
end

#table_chunkingTableChunkingMode?

Returns the value of attribute table_chunking.

Returns:



431
432
433
# File 'sig/types.rbs', line 431

def table_chunking
  @table_chunking
end

#topic_thresholdFloat?

Returns the value of attribute topic_threshold.

Returns:

  • (Float, nil)


430
431
432
# File 'sig/types.rbs', line 430

def topic_threshold
  @topic_threshold
end

#trimBoolean?

Returns the value of attribute trim.

Returns:

  • (Boolean, nil)


424
425
426
# File 'sig/types.rbs', line 424

def trim
  @trim
end

Class Method Details

.defaultChunkingConfig

Returns:



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

def self.default: () -> ChunkingConfig