Rendered Source Note

Retrieve & Re-Rank (Sentence-Transformers)

Generated HTML view. Markdown remains canonical.

Retrieve & Re-Rank (Sentence-Transformers)

Type: article (official library guide) Tier: 3 (Engineering Guide) Author(s): Nils Reimers / Sentence-Transformers (UKP Lab) Date: accessed 2026-06-01 URL: https://www.sbert.net/examples/applications/retrieve_rerank/README.html Accessed: 2026-06-01

Why This Source Matters

sentence-bert.md introduces the bi-encoder vs. cross-encoder distinction in theory; this guide makes it an operational pattern. Project 03 builds first-stage retrieval (bi-encoder + vector DB). The natural next question — "the top result isn't always best; how do production systems fix that?" — is answered by retrieve-then-rerank. This source grounds the lesson's "production patterns" section and the optional re-ranking milestone.

Key Claims

Stage 1 — retrieve with a bi-encoder (fast)

Stage 2 — re-rank with a cross-encoder (accurate)

Why not cross-encoder alone

The pipeline

Relevant To

Notes