Documentation
¶
Overview ¶
Package retrieval implements the hybrid FTS+vector fusion decided in https://github.com/cheetahbyte/lore/issues/7.
Index ¶
Constants ¶
View Source
const DefaultK = 60.0
DefaultK is the Reciprocal Rank Fusion constant both open-source precedents (docs-mcp-server, contextmine) converged on independently — see the research findings linked from issue #7.
Variables ¶
This section is empty.
Functions ¶
func Fuse ¶
Fuse combines one or more ranked ID lists (best result first in each) into a single fused ranking via Reciprocal Rank Fusion, and returns IDs ordered best-first. An ID present in multiple rankings accumulates score from each. Pass a single ranking to use RRF as a no-op reordering (it preserves order in that case).
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.