Versions in this module Expand all Collapse all v0 v0.1.1 Sep 11, 2026 v0.1.0 Sep 8, 2026 Changes in this version + func BM25Tokenize(s string) []string + func Dot(a, b []float32) float32 + func LoadMatrix(path string, count, dim int) ([]float32, bool) + func LoadQrels(path string) (map[string]map[string]int, error) + func PeekMatrix(path string) (count, dim int, ok bool) + func ReadJSONL(path string, fn func([]byte) error) error + func Sanitize(s string) string + func SaveMatrix(path string, mat []float32, count, dim int) error + type BM25Index struct + func NewBM25Index(docs []CorpusDoc) *BM25Index + func (b *BM25Index) Rank(query string, cand []int) []int + type CorpusDoc struct + ID string + Text string + func LoadCorpus(path string, maxChars int) ([]CorpusDoc, error) + type Query struct + Filtered []string + ID string + Text string + func LoadQueries(path string, maxChars int) ([]Query, error)