Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions docs/hybrid-search-reranking-pipeline.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Hybrid Search & Reranking Architecture

## Scoring Formula
Combines sparse BM25 lexical search with dense vector similarity via Reciprocal Rank Fusion:
$$RRF(d) = \sum_{m \in M} \frac{1}{k + r_m(d)}$$
where $k = 60$ and $r_m(d)$ is the rank position of document $d$ in retrieval method $m$.

## Cross-Encoder Reranker
Top 25 candidates from RRF are scored by a cross-encoder (e.g. `bge-reranker-large`) before selecting the final top 5 context windows for generation.
Loading