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:



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

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:



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

def chunker_type
  @chunker_type
end

#embeddingEmbeddingConfig?

Returns the value of attribute embedding.

Returns:



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

def embedding
  @embedding
end

#max_charactersInteger?

Returns the value of attribute max_characters.

Returns:

  • (Integer, nil)


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

def max_characters
  @max_characters
end

#overlapInteger?

Returns the value of attribute overlap.

Returns:

  • (Integer, nil)


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

def overlap
  @overlap
end

#prepend_heading_contextBoolean?

Returns the value of attribute prepend_heading_context.

Returns:

  • (Boolean, nil)


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

def prepend_heading_context
  @prepend_heading_context
end

#presetString?

Returns the value of attribute preset.

Returns:

  • (String, nil)


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

def preset
  @preset
end

#sizingChunkSizing?

Returns the value of attribute sizing.

Returns:



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

def sizing
  @sizing
end

#table_chunkingTableChunkingMode?

Returns the value of attribute table_chunking.

Returns:



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

def table_chunking
  @table_chunking
end

#topic_thresholdFloat?

Returns the value of attribute topic_threshold.

Returns:

  • (Float, nil)


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

def topic_threshold
  @topic_threshold
end

#trimBoolean?

Returns the value of attribute trim.

Returns:

  • (Boolean, nil)


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

def trim
  @trim
end

Class Method Details

.defaultChunkingConfig

Returns:



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

def self.default: () -> ChunkingConfig