rrf (Reciprocal Rank Fusion), mm (min-max), and l2 (l2_norm).
- RRF combines rankings by taking the reciprocal of each result’s rank position, providing balanced weighting across different search methods.
- MinMax normalization scales scores to a 0-1 range before combining.
- L2 norm uses Euclidean distance-based normalization to merge relevance scores from multiple query sources.
Regardless of the rescoring method used, the final combined score is always normalized to a value between 0 and 1.
Parameters
Rescoring methods
Query object parameters
Each query object within the rescoring method array can contain:A hybrid query can include up to two query objects. If you need to express more complex logic within a query object, use a
boolean query to combine multiple conditions.Boost constraints
- The boost parameter is only available for
mmandl2rescoring methods. - The sum of all boost values must equal 1.0.
- Each individual boost value must be between 0 and 1.
Examples
L2-norm hybrid query
- A
queryStringquery with 0.7 boost weight. - A
knnvector query with pre-filtering and 0.3 boost weight. - Uses L2-norm rescoring to merge the results.
MinMax hybrid query with sparse vector
- A
sparseVectorquery with 0.6 boost weight. - A
knndense vector query with 0.4 boost weight. - Uses MinMax normalization to merge the results.