Reciprocal Rank Fusion (RRF)
No security coverage
This module enhances Drupal's search functionality by combining results from different search methods, such as vector and keyword searches. It uses the Reciprocal Rank Fusion algorithm to merge and re-rank these results, improving overall search relevance.
RRF Search
Reciprocal Rank Fusion (RRF) module for combining vector and traditional search results in Drupal Search API.
Features
- Implements Reciprocal Rank Fusion algorithm for search result merging
- Seamlessly integrates with Search API
- Combines vector-based and keyword-based search results
- Improves search relevance through result fusion
Requirements
- Drupal 10 or Drupal 11
- Search API module
- AI module (2.0+) with AI Search submodule
Installation
Using Composer (recommended)
composer require drupal/rrf
Then enable the module:
drush en rrf
Manual Installation
- Download the module from Drupal.org
- Extract to
web/modules/contrib/rrf - Enable via the admin interface or with Drush
Usage
Once enabled, the RRF Search module provides a Search API processor that combines results from multiple search backends using the Reciprocal Rank Fusion algorithm.
How RRF Works
Reciprocal Rank Fusion combines rankings from multiple search systems by:
- Taking results from different search methods (e.g., vector search and keyword search)
- Assigning scores based on result positions
- Merging and re-ranking results for optimal relevance
Contributing
Contributions are welcome! Please:
- Check the issue queue for existing issues
- Follow Drupal coding standards
- Submit patches or merge requests via Drupal.org
Support
- Issue tracking: Drupal.org issue queue
- Source code: DrupalCode Git repository
License
This project is licensed under the GPL-2.0-or-later license.