Table of Contents

Property MaximumRecallTokens

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

MaximumRecallTokens

Maximum number of tokens recalled from Memory per turn.

Defaults to ContextSize / 4. The effective value is automatically capped to at most ContextSize / 2.

public int MaximumRecallTokens { get; set; }

Property Value

int

Examples

using var chat = new RagChat(ragEngine, chatModel);
chat.Memory = new AgentMemory(embeddingModel);

// Limit the tokens allocated for memory recall
chat.MaximumRecallTokens = 512;
Share