Property MinRelevanceScore
MinRelevanceScore
Gets or sets the minimum relevance score for retrieved partitions.
public float MinRelevanceScore { get; set; }
Property Value
- float
A value from
0.0(accept all) to1.0(exact matches only). Default is0.5.
Examples
using var chat = new RagChat(ragEngine, chatModel);
// Only include highly relevant partitions
chat.MinRelevanceScore = 0.7f;
Remarks
Partitions scoring below this threshold are excluded from the context. Higher values return fewer but more precisely matched results.