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.
450 |
# File 'sig/types.rbs', line 450
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.
442 443 444 |
# File 'sig/types.rbs', line 442 def chunker_type @chunker_type end |
#embedding ⇒ EmbeddingConfig?
Returns the value of attribute embedding.
443 444 445 |
# File 'sig/types.rbs', line 443 def @embedding end |
#max_characters ⇒ Integer?
Returns the value of attribute max_characters.
439 440 441 |
# File 'sig/types.rbs', line 439 def max_characters @max_characters end |
#overlap ⇒ Integer?
Returns the value of attribute overlap.
440 441 442 |
# File 'sig/types.rbs', line 440 def overlap @overlap end |
#prepend_heading_context ⇒ Boolean?
Returns the value of attribute prepend_heading_context.
446 447 448 |
# File 'sig/types.rbs', line 446 def prepend_heading_context @prepend_heading_context end |
#preset ⇒ String?
Returns the value of attribute preset.
444 445 446 |
# File 'sig/types.rbs', line 444 def preset @preset end |
#sizing ⇒ ChunkSizing?
Returns the value of attribute sizing.
445 446 447 |
# File 'sig/types.rbs', line 445 def sizing @sizing end |
#table_chunking ⇒ TableChunkingMode?
Returns the value of attribute table_chunking.
448 449 450 |
# File 'sig/types.rbs', line 448 def table_chunking @table_chunking end |
#topic_threshold ⇒ Float?
Returns the value of attribute topic_threshold.
447 448 449 |
# File 'sig/types.rbs', line 447 def topic_threshold @topic_threshold end |
#trim ⇒ Boolean?
Returns the value of attribute trim.
441 442 443 |
# File 'sig/types.rbs', line 441 def trim @trim end |
Class Method Details
.default ⇒ ChunkingConfig
451 |
# File 'sig/types.rbs', line 451
def self.default: () -> ChunkingConfig
|