Versions in this module Expand all Collapse all v0 v0.1.0 Aug 1, 2026 Changes in this version + var ErrDim = errors.New("simdvec: wrong vector dimension") + type Index struct + func New(dim int, metric Metric) *Index + func (ix *Index) Add(id string, vec []float32) error + func (ix *Index) Dim() int + func (ix *Index) Len() int + func (ix *Index) Search(query []float32, k int) ([]Result, error) + type Metric int + const Cosine + const DotProduct + const Euclidean + func (m Metric) String() string + type Result struct + ID string + Score float32