@lancedb/lancedb β’ Docs
@lancedb/lancedb / rerankers / RRFReranker
Class: RRFReranker
Reranks the results using the Reciprocal Rank Fusion (RRF) algorithm.
Internally this uses the Rust implementation
Constructors
new RRFReranker()
Parameters
- inner:
RrfReranker
Returns
Methods
rerankHybrid()
Parameters
-
query:
string
-
vecResults:
RecordBatch
<any
> -
ftsResults:
RecordBatch
<any
>
Returns
Promise
<RecordBatch
<any
>>
create()
Parameters
- k:
number
=60
Returns
Promise
<RRFReranker
>