Property RerankAlpha
RerankAlpha
Gets or sets the blending factor α used to combine the raw similarity with the rerank score. Must be between 0 (use only raw score) and 1 (use only rerank score).
public float RerankAlpha { get; set; }
Property Value
Examples
var reranker = new RagEngine.RagReranker(rerankModel);
// Favor the rerank score over the raw similarity score
reranker.RerankAlpha = 0.8f;
Exceptions
- ArgumentOutOfRangeException
Thrown if set to a value outside the [0,1] range.