Class: Xberg::ChunkingConfig
- Inherits:
-
Object
- Object
- Xberg::ChunkingConfig
- Defined in:
- sig/types.rbs
Instance Attribute Summary collapse
-
#chunker_type ⇒ ChunkerType?
Returns the value of attribute chunker_type.
-
#embedding ⇒ EmbeddingConfig?
Returns the value of attribute embedding.
-
#max_characters ⇒ Integer?
Returns the value of attribute max_characters.
-
#overlap ⇒ Integer?
Returns the value of attribute overlap.
-
#prepend_heading_context ⇒ Boolean?
Returns the value of attribute prepend_heading_context.
-
#preset ⇒ String?
Returns the value of attribute preset.
-
#sizing ⇒ ChunkSizing?
Returns the value of attribute sizing.
-
#table_chunking ⇒ TableChunkingMode?
Returns the value of attribute table_chunking.
-
#topic_threshold ⇒ Float?
Returns the value of attribute topic_threshold.
-
#trim ⇒ Boolean?
Returns the value of attribute trim.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize ⇒ ChunkingConfig
constructor
A new instance of ChunkingConfig.
Constructor Details
#initialize ⇒ ChunkingConfig
Returns a new instance of ChunkingConfig.
453 |
# File 'sig/types.rbs', line 453
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_type ⇒ ChunkerType?
Returns the value of attribute chunker_type.
445 446 447 |
# File 'sig/types.rbs', line 445 def chunker_type @chunker_type end |
#embedding ⇒ EmbeddingConfig?
Returns the value of attribute embedding.
446 447 448 |
# File 'sig/types.rbs', line 446 def @embedding end |
#max_characters ⇒ Integer?
Returns the value of attribute max_characters.
442 443 444 |
# File 'sig/types.rbs', line 442 def max_characters @max_characters end |
#overlap ⇒ Integer?
Returns the value of attribute overlap.
443 444 445 |
# File 'sig/types.rbs', line 443 def overlap @overlap end |
#prepend_heading_context ⇒ Boolean?
Returns the value of attribute prepend_heading_context.
449 450 451 |
# File 'sig/types.rbs', line 449 def prepend_heading_context @prepend_heading_context end |
#preset ⇒ String?
Returns the value of attribute preset.
447 448 449 |
# File 'sig/types.rbs', line 447 def preset @preset end |
#sizing ⇒ ChunkSizing?
Returns the value of attribute sizing.
448 449 450 |
# File 'sig/types.rbs', line 448 def sizing @sizing end |
#table_chunking ⇒ TableChunkingMode?
Returns the value of attribute table_chunking.
451 452 453 |
# File 'sig/types.rbs', line 451 def table_chunking @table_chunking end |
#topic_threshold ⇒ Float?
Returns the value of attribute topic_threshold.
450 451 452 |
# File 'sig/types.rbs', line 450 def topic_threshold @topic_threshold end |
#trim ⇒ Boolean?
Returns the value of attribute trim.
444 445 446 |
# File 'sig/types.rbs', line 444 def trim @trim end |
Class Method Details
.default ⇒ ChunkingConfig
454 |
# File 'sig/types.rbs', line 454
def self.default: () -> ChunkingConfig
|