Module text

Module text 

Source
Expand description

Full-text search using tantivy.

Provides BM25-based text search that integrates with VectorStore for hybrid (vector + text) search capabilities.

Structs§

HybridResult
Result from hybrid search with separate keyword and semantic scores.
TextIndex
Full-text search index backed by tantivy.
TextSearchConfig
Configuration for text search functionality.

Constants§

DEFAULT_RRF_K
Default RRF constant (k=60 per Cormack et al. 2009).

Functions§

reciprocal_rank_fusion
Reciprocal Rank Fusion for combining vector and text search results.
weighted_reciprocal_rank_fusion
Weighted Reciprocal Rank Fusion for hybrid search with tunable balance.
weighted_reciprocal_rank_fusion_with_subscores
Weighted RRF with separate keyword and semantic scores returned.