Skip to main content

adaptive_vector_weight

Function adaptive_vector_weight 

Source
pub fn adaptive_vector_weight(kind: QueryKind) -> f32
Expand description

Return an adaptive vector_weight (0.0–1.0) for a HybridSearcher based on the inferred [QueryKind].

QueryKindvector_weightRationale
Keyword0.25Exact-term signals dominate
Hybrid0.50Balanced blend
Semantic0.75Embedding captures intent better