Versions in this module Expand all Collapse all v0 v0.6.0 May 17, 2026 v0.5.3 May 17, 2026 v0.5.2 May 11, 2026 v0.5.1 May 8, 2026 v0.5.0 May 8, 2026 Changes in this version + const DefaultRRFK + func CosineSimilarity(query []float32, queryNorm float64, candidate []float32) (float64, error) + func DecodeFloat32(blob []byte) ([]float32, error) + func EncodeFloat32(values []float32) ([]byte, error) + func Norm(values []float32) float64 + func ValidateDimensions(values []float32, dimensions int) error + type RRFEntry struct + Item T + Score float64 + func ReciprocalRankFusion[T any](rankings [][]T, ids []func(T) string, weights []float64, k float64) []RRFEntry[T] + type Scored struct + Item T + Score float64 + func TopK[T any](items []Scored[T], limit int, tieLess func(left, right T) bool) []Scored[T]