Expand description
Retrieval: dense vector, sparse BM25, and the advanced modes that combine or rewrite queries (Hybrid, Multi-Query fusion, HyDE).
Modules§
- bm25
- Pure-Rust Okapi BM25 over a set of chunks. Rebuilt per query from the store’s chunk corpus — fine at the eval scale this crate targets, and keeps keyword search identical across every DB backend.
- fusion
- Reciprocal Rank Fusion (RRF): combine several ranked result lists into one by
summing
1 / (k + rank)across the lists. Rank-based, so it fuses scores from different scales (cosine, BM25) without normalization.
Structs§
- Retriever
- Orchestrates the retrieval modes over a store + embedder (+ optional LLM).