retrieval

package
v0.2.0 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 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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