View Source ExOpenAI.Components.StaticChunkingStrategy (ex_openai.ex v2.0.0-beta2)
Module for representing the OpenAI schema StaticChunkingStrategy.
Fields
:chunk_overlap_tokens- required -integer()
The number of tokens that overlap between chunks. The default value is400.
Note that the overlap must not exceed half of max_chunk_size_tokens.
:max_chunk_size_tokens- required -integer()
The maximum number of tokens in each chunk. The default value is800. The minimum value is100and the maximum value is4096.
Constraints: minimum: 100, maximum: 4096