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.
433 |
# File 'sig/types.rbs', line 433
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.
425 426 427 |
# File 'sig/types.rbs', line 425 def chunker_type @chunker_type end |
#embedding ⇒ EmbeddingConfig?
Returns the value of attribute embedding.
426 427 428 |
# File 'sig/types.rbs', line 426 def @embedding end |
#max_characters ⇒ Integer?
Returns the value of attribute max_characters.
422 423 424 |
# File 'sig/types.rbs', line 422 def max_characters @max_characters end |
#overlap ⇒ Integer?
Returns the value of attribute overlap.
423 424 425 |
# File 'sig/types.rbs', line 423 def overlap @overlap end |
#prepend_heading_context ⇒ Boolean?
Returns the value of attribute prepend_heading_context.
429 430 431 |
# File 'sig/types.rbs', line 429 def prepend_heading_context @prepend_heading_context end |
#preset ⇒ String?
Returns the value of attribute preset.
427 428 429 |
# File 'sig/types.rbs', line 427 def preset @preset end |
#sizing ⇒ ChunkSizing?
Returns the value of attribute sizing.
428 429 430 |
# File 'sig/types.rbs', line 428 def sizing @sizing end |
#table_chunking ⇒ TableChunkingMode?
Returns the value of attribute table_chunking.
431 432 433 |
# File 'sig/types.rbs', line 431 def table_chunking @table_chunking end |
#topic_threshold ⇒ Float?
Returns the value of attribute topic_threshold.
430 431 432 |
# File 'sig/types.rbs', line 430 def topic_threshold @topic_threshold end |
#trim ⇒ Boolean?
Returns the value of attribute trim.
424 425 426 |
# File 'sig/types.rbs', line 424 def trim @trim end |
Class Method Details
.default ⇒ ChunkingConfig
434 |
# File 'sig/types.rbs', line 434
def self.default: () -> ChunkingConfig
|