struct
Memo::Config::Chunking
- Memo::Config::Chunking
- Struct
- Value
- Object
Overview
Chunking configuration for text segmentation
The app's preferred chunk sizes (must be <= service max_tokens)
Defined in:
memo/config.crConstructors
Instance Method Summary
- #max_tokens : Int32
- #min_tokens : Int32
- #no_chunk_threshold : Int32
- #tokens_per_byte : Float64
-
#with_tokens_per_byte(ratio : Float64) : Chunking
Return a copy with updated tokens_per_byte ratio
Constructor Detail
def self.new(min_tokens : Int32 = 200, max_tokens : Int32 = 2000, no_chunk_threshold : Int32 = 1500, tokens_per_byte : Float64 = 0.25)
#
Instance Method Detail
Return a copy with updated tokens_per_byte ratio