Field NormalizeScore
- Namespace
- LMKit.Embeddings
- Assembly
- LM-Kit.NET.dll
When true, reranking scores will be normalized to a common scale, in the range [0 - 1].
Default value is true.
public bool NormalizeScore
Returns
- bool
- When true, reranking scores will be normalized to a common scale, in the range [0 - 1]. Default value is true.
Examples
using LMKit.Model;
using LMKit.Embeddings;
LM model = LM.LoadFromModelID("embeddinggemma-300m");
Reranker reranker = new Reranker(model);
// Use raw scores without normalization
reranker.NormalizeScore = false;
float rawScore = reranker.GetScore("query text", "document text");
Console.WriteLine($"Raw score: {rawScore}");