Table of Contents

Field MinRelevanceScore

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

The default minimum relevance score used to filter retrieved partitions. Partitions scoring below this threshold are excluded from results.

public const float MinRelevanceScore = 0.5

Returns

float
The default minimum relevance score used to filter retrieved partitions. Partitions scoring below this threshold are excluded from results.

Examples

// Use the default threshold when searching for matching partitions.
var matches = ragEngine.FindMatchingPartitions(
    "semantic search",
    topK: 5,
    minScore: RetrievalDefaults.MinRelevanceScore);

Console.WriteLine($"Found {matches.Count} partitions above {RetrievalDefaults.MinRelevanceScore} relevance.");
Share