Property VectorWeight
VectorWeight
Gets or sets the weight applied to the vector (semantic) strategy during Reciprocal Rank Fusion.
public float VectorWeight { get; set; }
Property Value
- float
A non-negative value. Default is
1.0.
Examples
var hybrid = new HybridRetrievalStrategy
{
VectorWeight = 0.8f, // Emphasize semantic similarity.
KeywordWeight = 0.2f
};
ragEngine.RetrievalStrategy = hybrid;
Remarks
The weights are relative: VectorWeight = 0.7 and KeywordWeight = 0.3
gives vector results roughly twice the influence of keyword results in the
fused ranking. Equal weights (the default) give both strategies the same influence.