K - Key typepublic static class CombineArgs.Linear<K> extends Object implements CombineArgs.CombineMethod<K>
Formula: combined_score = ALPHA * text_score + BETA * vector_score
| Constructor and Description |
|---|
Linear() |
| Modifier and Type | Method and Description |
|---|---|
CombineArgs.Linear<K> |
alpha(double alpha)
Set the ALPHA parameter - weight for text search score.
|
CombineArgs.Linear<K> |
beta(double beta)
Set the BETA parameter - weight for vector search score.
|
<V> void |
build(CommandArgs<K,V> args)
Build the combine method arguments.
|
public CombineArgs.Linear<K> alpha(double alpha)
alpha - weight for text scorepublic CombineArgs.Linear<K> beta(double beta)
beta - weight for vector scorepublic <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.