Skip to main content

Module fusion

Module fusion 

Source
Expand description

Multi-source result fusion.

Implements Reciprocal Rank Fusion (RRF) to combine results from text search and semantic search into a unified ranked list.

Formula: score = sum(1 / (k + rank_i)) where k defaults to 60.

Structs§

FusedResult
Fused search result combining scores from multiple sources.

Functions§

fuse_ast_only
Fuse only AST pattern search results.
fuse_semantic_only
Fuse only semantic results (used when text search is not applicable).
fuse_text_only
Fuse only text results (used when semantic search is not applicable).
rrf_fuse
Perform Reciprocal Rank Fusion (RRF) on multiple result lists.
rrf_fuse_three
Perform three-way RRF fusion across text, semantic, and AST results.