Expand description
Hybrid semantic + keyword search with Reciprocal Rank Fusion (RRF).
HybridIndex wraps a SearchIndex (dense vector search) and a
Bm25Index (BM25 keyword search) and fuses their ranked results via
Reciprocal Rank Fusion so that chunks appearing high in either list
bubble to the top of the combined ranking.
Structs§
- Hybrid
Index - Combined semantic + keyword search index with RRF fusion.
- Parse
Search Mode Error - Error returned when a
SearchModestring cannot be parsed.
Enums§
- Search
Mode - Controls which retrieval strategy is used during search.
Functions§
- boost_
with_ pagerank - Apply a multiplicative PageRank boost to search results.
- pagerank_
lookup - Build a normalized PageRank lookup table from a [
RepoGraph]. - rrf_
fuse - Reciprocal Rank Fusion of two ranked lists.