Skip to main content

Cross Encoder Reranker

This reranker uses Cross Encoder models from sentence-transformers to rerank the search results. You can use this reranker by passing CrossEncoderReranker() to the rerank() method.
Note: Supported query types – Hybrid, Vector, and FTS.

Accepted Arguments

The reranker loads the model locally through sentence-transformers, so install the local model runtime dependencies you need, such as PyTorch and any device-specific acceleration packages.

Supported Scores for each query type

You can specify the type of scores you want the reranker to return. The following are the supported scores for each query type: