Table of Contents

Property RepetitionPenalty

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

RepetitionPenalty

Gets the repetition penalty configuration used to reduce repetitive outputs.

public RepetitionPenalty RepetitionPenalty { get; }

Property Value

RepetitionPenalty

Examples

using var chat = new RagChat(ragEngine, chatModel);

// Enable repetition penalty to avoid redundant phrasing
chat.RepetitionPenalty.FrequencyPenalty = 0.5f;

Remarks

By default, repetition penalty is disabled for RAG to preserve accurate reproduction of source content.

Share