Merge hits from different embedding spaces. Pure.
Merge hits from different embedding spaces. Pure.
(fuse results limit)One ranking over every space, best first, at most limit long.
Ids are deduplicated across spaces; an id several spaces returned accumulates
their reciprocal ranks. :score is a rank score, not a distance — the two are
different units and must never be compared. :distance is carried for display
and is meaningful only within :best-space.
One ranking over every space, best first, at most `limit` long. Ids are deduplicated across spaces; an id several spaces returned accumulates their reciprocal ranks. `:score` is a rank score, not a distance — the two are different units and must never be compared. `:distance` is carried for display and is meaningful only within `:best-space`.
(rank-hits hits)hits ordered nearest-first, each stamped with its 1-based :rank.
Stable on ties.
`hits` ordered nearest-first, each stamped with its 1-based `:rank`. Stable on ties.
(rrf-score rank)A rank's contribution to a fused score.
A rank's contribution to a fused score.
(single-space? results)True when every hit came from at most one space.
True when every hit came from at most one space.
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |