K - Key typepublic static class CombineArgs.RRF<K> extends Object implements CombineArgs.CombineMethod<K>
RRF formula: score = 1 / (CONSTANT + rank_in_window)
| Constructor and Description |
|---|
RRF() |
| Modifier and Type | Method and Description |
|---|---|
<V> void |
build(CommandArgs<K,V> args)
Build the combine method arguments.
|
CombineArgs.RRF<K> |
constant(double constant)
Set the CONSTANT parameter - constant added to rank to prevent division by zero.
|
CombineArgs.RRF<K> |
window(int window)
Set the WINDOW parameter - number of top results to consider from each ranking.
|
public CombineArgs.RRF<K> window(int window)
window - number of top resultspublic CombineArgs.RRF<K> constant(double constant)
constant - constant valuepublic <V> void build(CommandArgs<K,V> args)
CombineArgs.CombineMethodbuild in interface CombineArgs.CombineMethod<K>V - value typeargs - the CommandArgs to append toCopyright © 2025 lettuce.io. All rights reserved.