Property MaximumRecallTokens
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
Examples
using var chat = new RagChat(ragEngine, chatModel);
chat.Memory = new AgentMemory(embeddingModel);
// Limit the tokens allocated for memory recall
chat.MaximumRecallTokens = 512;