Skip to main content
Reciprocal Rank Fusion (RRF) combines results from multiple search queries by scoring each result based on its rank position across all result lists. RRF is effective when combining searches that use different query vectors or embedding models where raw scores are not directly comparable. The ranking_constant_k parameter controls how much weight higher-ranked results receive. The default value of 60 provides balanced fusion for most use cases. The example below creates a collection, inserts 100 sample documents, and runs two vector searches using different query vectors. It then applies RRF to fuse both result lists into a single ranking of the top 10 results based on rank position.
Each fused result includes these fields:
  • id: The unique identifier of the matching point
  • score: Fused score based on rank positions across all result lists
  • payload: Metadata object if the original searches included payloads
The ranking_constant_k parameter affects how scores are distributed:
  • Lower values (for example, 10) give significantly more weight to top-ranked results
  • Default value (60) provides balanced weight distribution
  • Higher values (for example, 100) distribute weight more evenly across all ranks