Property MaxChunkSize
MaxChunkSize
Gets or sets the maximum target size of a produced chunk, expressed in tokens.
public int MaxChunkSize { get; set; }
Property Value
Examples
// Use smaller chunks for granular retrieval of markdown sections.
var mdChunker = new MarkdownChunking { MaxChunkSize = 300 };
ragEngine.ImportText(markdownText, chunker: mdChunker, "wiki", "overview");
Remarks
The effective size may be adjusted internally based on model constraints (for example, reserved special tokens required by the vocabulary) and is clamped to a minimum of 50 tokens and to the model embedding size.