Class: Xberg::ChunkingConfig

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeChunkingConfig

Returns a new instance of ChunkingConfig.

Parameters:



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

def initialize: (?max_characters: Integer, ?overlap: Integer, ?trim: bool, ?chunker_type: enum_ChunkerType, ?embedding: EmbeddingConfig, ?sparse_embedding: SparseEmbeddingConfig, ?late_interaction: LateInteractionConfig, ?preset: String, ?sizing: ChunkSizing, ?topic_threshold: Float, ?table_chunking: enum_TableChunkingMode) -> void

Instance Attribute Details

#chunker_typeenum_ChunkerType (readonly)

Returns the value of attribute chunker_type.

Returns:

  • (enum_ChunkerType)


203
204
205
# File 'sig/types.rbs', line 203

def chunker_type
  @chunker_type
end

#embeddingEmbeddingConfig? (readonly)

Returns the value of attribute embedding.

Returns:



204
205
206
# File 'sig/types.rbs', line 204

def embedding
  @embedding
end

#late_interactionLateInteractionConfig? (readonly)

Returns the value of attribute late_interaction.

Returns:



206
207
208
# File 'sig/types.rbs', line 206

def late_interaction
  @late_interaction
end

#max_charactersInteger (readonly)

Returns the value of attribute max_characters.

Returns:

  • (Integer)


200
201
202
# File 'sig/types.rbs', line 200

def max_characters
  @max_characters
end

#overlapInteger (readonly)

Returns the value of attribute overlap.

Returns:

  • (Integer)


201
202
203
# File 'sig/types.rbs', line 201

def overlap
  @overlap
end

#presetString? (readonly)

Returns the value of attribute preset.

Returns:

  • (String, nil)


207
208
209
# File 'sig/types.rbs', line 207

def preset
  @preset
end

#sizingChunkSizing (readonly)

Returns the value of attribute sizing.

Returns:



208
209
210
# File 'sig/types.rbs', line 208

def sizing
  @sizing
end

#sparse_embeddingSparseEmbeddingConfig? (readonly)

Returns the value of attribute sparse_embedding.

Returns:



205
206
207
# File 'sig/types.rbs', line 205

def sparse_embedding
  @sparse_embedding
end

#table_chunkingenum_TableChunkingMode (readonly)

Returns the value of attribute table_chunking.

Returns:

  • (enum_TableChunkingMode)


210
211
212
# File 'sig/types.rbs', line 210

def table_chunking
  @table_chunking
end

#topic_thresholdFloat? (readonly)

Returns the value of attribute topic_threshold.

Returns:

  • (Float, nil)


209
210
211
# File 'sig/types.rbs', line 209

def topic_threshold
  @topic_threshold
end

#trimBoolean (readonly)

Returns the value of attribute trim.

Returns:

  • (Boolean)


202
203
204
# File 'sig/types.rbs', line 202

def trim
  @trim
end