firehose> #llmops

Rank Fusion

The step that turns Hybrid Retrieval's two independently ranked result lists (keyword and semantic) into one ranking. Two common methods, with a real tradeoff:

Results that appear near the top of both lists bubble up; a result found by only one channel takes a zero for the other and still competes. Two implementation details worth stealing: OpenClaw over-fetches a 4× candidate multiplier (ask for 6, each channel returns up to 24) so fusion has more to work with, then filters the fused list by a minimum score threshold (0.35) and caps to the requested count. BM25 ranks are folded into a 0–1 score via 1/(1+rank); cosine distance is flipped to similarity via 1 − distance.

Claims


Linked from