Table of Contents

Property MaxChunkSize

Namespace
LMKit.Retrieval
Assembly
LM-Kit.NET.dll

MaxChunkSize

Gets or sets the maximum target size of a produced chunk, expressed in tokens. The effective limit may be adjusted internally depending on model requirements (for example, reserved special tokens).

int MaxChunkSize { get; set; }

Property Value

int

Examples

IChunking chunker = new TextChunking();

// Use smaller chunks for precise fact retrieval.
chunker.MaxChunkSize = 256;
ragEngine.DefaultIChunking = chunker;
Share