This guide uses the
mock_items table, which was created in the quickstart. It assumes that the entire
quickstart tutorial has been completed, including the vector search section.Reciprocal Rank Fusion
Reciprocal rank fusion is a popular hybrid search algorithm that:- Calculates a BM25 and similarity score for the top
ndocuments. - Ranks documents by their BM25 and similarity scores separately. The highest-ranked document for each score receives an
rof1. - Calculates a reciprocal rank for each score as
1/(k + r), wherekis a constant.kis usually set to60. - Calculates each document’s reciprocal rank fusion score as the sum of the BM25 and similarity reciprocal rank scores.
mock_items table. BM25 scores are calculated against the query description:keyboard and similarity scores are
calculated against the vector [1,2,3].
Expected Response
Expected Response
keyboard in the description field or have an embedding of [1,2,3].