Class ChunkingStrategyStatic
- Namespace
- OpenAI.VectorStores
- Assembly
- OpenAI-DotNet.dll
public sealed class ChunkingStrategyStatic
- Inheritance
-
ChunkingStrategyStatic
- Inherited Members
Constructors
ChunkingStrategyStatic(int?, int?)
Constructor.
[JsonConstructor]
public ChunkingStrategyStatic(int? maxChunkSizeTokens = null, int? chunkOverlapTokens = null)
Parameters
maxChunkSizeTokens
int?The maximum number of tokens in each chunk. The default value is 800. The minimum value is 100 and the maximum value is 4096.
chunkOverlapTokens
int?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.
Properties
ChunkOverlapTokens
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.
[JsonPropertyName("chunk_overlap_tokens")]
public int? ChunkOverlapTokens { get; }
Property Value
- int?
MaxChunkSizeTokens
The maximum number of tokens in each chunk. The default value is 800. The minimum value is 100 and the maximum value is 4096.
[JsonPropertyName("max_chunk_size_tokens")]
public int? MaxChunkSizeTokens { get; }
Property Value
- int?