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 PdfChat(chatModel, embeddingModel);

// Enable a light repetition penalty if responses become repetitive
chat.RepetitionPenalty.FrequencyPenalty = 0.1f;

Remarks

By default, repetition penalty is disabled for document QA to preserve accurate reproduction of document content.

Share