Property RerankedScore
RerankedScore
Gets the similarity score after applying a reranking model to this partition.
public float RerankedScore { get; }
Property Value
- float
A floating-point number between 0 and 1 representing the reranked similarity. The value is
-1if no reranking has been performed; otherwise, it is the combined score based on the original similarity, the reranked score, and the reranked alpha blending factor.
Examples
var matches = ragEngine.FindMatchingPartitions("transformers", topK: 5);
foreach (PartitionSimilarity match in matches)
{
if (match.RerankedScore >= 0)
{
Console.WriteLine($"Reranked score: {match.RerankedScore:F3}");
}
else
{
Console.WriteLine("No reranking was applied.");
}
}