Class: OpenAI::Models::StaticFileChunkingStrategy
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- OpenAI::Models::StaticFileChunkingStrategy
- Defined in:
- lib/openai/models/static_file_chunking_strategy.rb
Instance Attribute Summary collapse
-
#chunk_overlap_tokens ⇒ Integer
The number of tokens that overlap between chunks.
-
#max_chunk_size_tokens ⇒ Integer
The maximum number of tokens in each chunk.
Instance Method Summary collapse
-
#initialize(chunk_overlap_tokens: , max_chunk_size_tokens: ) ⇒ Object
constructor
Some parameter documentations has been truncated, see StaticFileChunkingStrategy for more details.
Methods inherited from Internal::Type::BaseModel
==, #==, #[], coerce, #deconstruct_keys, #deep_to_h, dump, fields, hash, #hash, inherited, inspect, #inspect, known_fields, optional, recursively_to_h, required, #to_h, #to_json, #to_s, to_sorbet_type, #to_yaml
Methods included from Internal::Type::Converter
#coerce, coerce, #dump, dump, #inspect, inspect, type_info
Methods included from Internal::Util::SorbetRuntimeSupport
#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type
Constructor Details
#initialize(chunk_overlap_tokens: , max_chunk_size_tokens: ) ⇒ Object
Some parameter documentations has been truncated, see OpenAI::Models::StaticFileChunkingStrategy for more details.
|
# File 'lib/openai/models/static_file_chunking_strategy.rb', line 21
|
Instance Attribute Details
#chunk_overlap_tokens ⇒ Integer
The number of tokens that overlap between chunks. The default value is ‘400`.
Note that the overlap must not exceed half of ‘max_chunk_size_tokens`.
12 |
# File 'lib/openai/models/static_file_chunking_strategy.rb', line 12 required :chunk_overlap_tokens, Integer |
#max_chunk_size_tokens ⇒ Integer
The maximum number of tokens in each chunk. The default value is ‘800`. The minimum value is `100` and the maximum value is `4096`.
19 |
# File 'lib/openai/models/static_file_chunking_strategy.rb', line 19 required :max_chunk_size_tokens, Integer |