Property RepetitionPenalty
RepetitionPenalty
Gets the repetition penalty configuration used to reduce repetitive outputs.
public RepetitionPenalty RepetitionPenalty { get; }
Property Value
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.