Versions in this module Expand all Collapse all v1 v1.1.0 Sep 27, 2021 v1.0.0 May 1, 2021 v0 v0.2.0 Apr 27, 2021 Changes in this version + type Config struct + AutoIDEnabled bool + Dim int + EfConstruction int + M int + MaxElements int + RandSeed int + SpaceType SpaceType + type HNSW struct + func Load(location string) (*HNSW, error) + func New(config Config) *HNSW + func (h *HNSW) AddPoint(vector []float32, id uint32) error + func (h *HNSW) AddPointAutoID(vector []float32) (uint32, error) + func (h *HNSW) MarkDelete(id uint32) + func (h *HNSW) Save(location string) error + func (h *HNSW) SearchKNN(vector []float32, N int) []KNNResult + func (h *HNSW) SetEf(ef int) + type KNNResult struct + Distance float32 + ID uint32 + type SpaceType string + const CosineSpace + const IPSpace + const L2Space + func SpaceTypeFromString(s string) (SpaceType, error)