retrieval

package
v0.1.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 17, 2026 License: MIT Imports: 1 Imported by: 0

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

func Fuse(k float64, rankings ...[]string) []string

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL