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. TheDocumentation Index
Fetch the complete documentation index at: https://docs.vectoraidb.actian.com/llms.txt
Use this file to discover all available pages before exploring further.
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.
id: The unique identifier of the matching pointscore: Fused score based on rank positions across all result listspayload: Metadata object if the original searches included payloads
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