Table of Contents

Property MinRelativeScore

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

MinRelativeScore

Gets or sets the relative score gate applied to the final ranking: retrieved passages scoring below this fraction of the best hit's score are dropped, even when they clear the absolute relevance floor. Prevents a query with one strong answer from padding its citations with weak trailing matches.

public float MinRelativeScore { get; set; }

Property Value

float

A value between 0 and 1. Default is 0 (disabled).

Examples

using var chat = new PdfChat(chatModel, embeddingModel);

// Drop passages scoring more than 20% below the best hit
chat.MinRelativeScore = 0.8f;
See Also
Share