mirror of
https://github.com/lancedb/lancedb.git
synced 2026-01-06 03:42:57 +00:00
* Make `npm run docs` fail if there are any warnings. This will catch items missing from the API reference. * Add a check in our CI to make sure `npm run dos` runs without warnings and doesn't generate any new files (indicating it might be out-of-date. * Hide constructors that aren't user facing. * Remove unused enum `WriteMode`. Closes #2068
728 B
728 B
@lancedb/lancedb • Docs
@lancedb/lancedb / rerankers / RRFReranker
Class: RRFReranker
Reranks the results using the Reciprocal Rank Fusion (RRF) algorithm.
Methods
rerankHybrid()
rerankHybrid(
query,
vecResults,
ftsResults): Promise<RecordBatch<any>>
Parameters
-
query:
string -
vecResults:
RecordBatch<any> -
ftsResults:
RecordBatch<any>
Returns
Promise<RecordBatch<any>>
create()
static create(k): Promise<RRFReranker>
Parameters
- k:
number=60
Returns
Promise<RRFReranker>