The model sums up a whole record in one vector: a rare word of the
description weighs too little (« métamorphose »: 5 records missing or
far). With the neighbours, the keyword query over every field runs
again, all words required, best 100 matches, reordered by closeness to
the phrase, then fused with the neighbours. Without the model it stays
the former any-word query. RankFusion takes a weight per list.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
RankFusion::fuse(): exact matches (references, phrase, all words) first, in
their order; then the OR query and the kNN neighbours merged by reciprocal
rank fusion (k = 60, ranks only). Base::neighbours() asks materio_ai for 200
neighbours of the phrase without references; no model call for a chosen
term, references alone, a missing service, or an error (logged, keyword
results only). Unit test RankFusionTest.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01ShDspHaZGwHoRZCsPBJzsM