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:



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

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:



470
471
472
# File 'sig/types.rbs', line 470

def chunker_type
  @chunker_type
end

#embeddingEmbeddingConfig?

Returns the value of attribute embedding.

Returns:



471
472
473
# File 'sig/types.rbs', line 471

def embedding
  @embedding
end

#max_charactersInteger?

Returns the value of attribute max_characters.

Returns:

  • (Integer, nil)


467
468
469
# File 'sig/types.rbs', line 467

def max_characters
  @max_characters
end

#overlapInteger?

Returns the value of attribute overlap.

Returns:

  • (Integer, nil)


468
469
470
# File 'sig/types.rbs', line 468

def overlap
  @overlap
end

#prepend_heading_contextBoolean?

Returns the value of attribute prepend_heading_context.

Returns:

  • (Boolean, nil)


474
475
476
# File 'sig/types.rbs', line 474

def prepend_heading_context
  @prepend_heading_context
end

#presetString?

Returns the value of attribute preset.

Returns:

  • (String, nil)


472
473
474
# File 'sig/types.rbs', line 472

def preset
  @preset
end

#sizingChunkSizing?

Returns the value of attribute sizing.

Returns:



473
474
475
# File 'sig/types.rbs', line 473

def sizing
  @sizing
end

#table_chunkingTableChunkingMode?

Returns the value of attribute table_chunking.

Returns:



476
477
478
# File 'sig/types.rbs', line 476

def table_chunking
  @table_chunking
end

#topic_thresholdFloat?

Returns the value of attribute topic_threshold.

Returns:

  • (Float, nil)


475
476
477
# File 'sig/types.rbs', line 475

def topic_threshold
  @topic_threshold
end

#trimBoolean?

Returns the value of attribute trim.

Returns:

  • (Boolean, nil)


469
470
471
# File 'sig/types.rbs', line 469

def trim
  @trim
end

Class Method Details

.defaultChunkingConfig

Returns:



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

def self.default: () -> ChunkingConfig