Expand description
Reranking and result fusion strategies
Provides RRF (Reciprocal Rank Fusion) for combining vector and FTS results, and neural reranking using cross-encoder models for improved accuracy.
Structs§
- Fused
Result - Fused search result combining vector and FTS scores
- Neural
Reranker - Neural reranker using cross-encoder model
Constants§
- DEFAULT_
RRF_ K - Default RRF k parameter (per osgrep reference)
- EXACT_
MATCH_ RRF_ K - RRF k parameter for exact matches (lower = stronger boost)
Functions§
- rrf_
fusion - rrf_
fusion_ with_ exact - Reciprocal Rank Fusion with exact match boosting
- vector_
only - Simple vector-only pass-through (no fusion)