Table of Contents

Property MaxOverlapSize

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

MaxOverlapSize

Gets or sets the maximum overlap between consecutive chunks, expressed in tokens. Overlap preserves context continuity across chunk boundaries.

public int MaxOverlapSize { get; set; }

Property Value

int

The default value is 50.

Examples

// Increase overlap for better context continuity across chunks.
var htmlChunker = new HtmlChunking
{
    MaxChunkSize = 500,
    MaxOverlapSize = 80
};

ragEngine.DefaultIChunking = htmlChunker;
Share