Skip to main content

Module search

Module search 

Source

Structs§

KindBoost
A boost hint derived from query shape heuristics.

Functions§

detect_kind_boost
Detect likely symbol kinds from query shape to boost relevance scores. Returns an empty vec when the query is a qualified name (contains ::) because qualified names use exact-match boosting instead (see qualified_name_boost).
qualified_name_boost
Returns 2.0 if the query contains :: and is a qualified-name pattern, 1.0 otherwise. Applied as a multiplier to results whose qualified_name contains the query as a substring.
rrf_merge
Reciprocal Rank Fusion: merge multiple ranked lists into a single ranking. k is the smoothing constant (typically 60).
symbol_to_text
Build a natural-language text representation of a symbol for embedding.