Table of Contents

Property DefaultIChunking

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

DefaultIChunking

Gets or sets the default text chunking configuration used for splitting text into manageable partitions.

public IChunking DefaultIChunking { get; set; }

Property Value

IChunking

The chunking configuration. Defaults to a new TextChunking instance.

Examples

LM embeddingModel = LM.LoadFromModelID("embeddinggemma-300m");
RagEngine ragEngine = new RagEngine(embeddingModel);

// Configure a custom chunking strategy with smaller chunks and overlap
ragEngine.DefaultIChunking = new TextChunking
{
    MaxChunkSize = 256,
    ChunkOverlap = 32
};

Remarks

This property provides the default IChunking instance used to determine how text is segmented during the import process.

If a null value is assigned, a new TextChunking instance is created as a fallback.

Share