Skip to main content

Module rerank

Module rerank 

Source
Expand description

Rerankers: score each candidate document against the query so the candidate pool from vector + full-text search can be reordered.

  • OnnxCrossEncoder (feature rerank) — a BERT cross-encoder such as cross-encoder/ms-marco-MiniLM-L4-v2, int8 on ONNX Runtime, local CPU.
  • VoyageReranker (feature rerank-voyage) — Voyage AI’s rerank API; candidate text leaves the machine.
  • FallbackReranker — one reranker backed by another.

Structs§

FallbackReranker
primary, or fallback when primary fails (e.g. a remote reranker that is down or rate limited, backed by a local one).
OnnxCrossEncoder
Local int8 cross-encoder reranker on ONNX Runtime.
VoyageReranker
Reranks with a Voyage model such as rerank-3-lite or rerank-3.

Traits§

Reranker
Scores (query, document) pairs.