hnswgo

package
v0.0.0-...-c32d9a2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 7, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HNSW

type HNSW struct {
	// contains filtered or unexported fields
}

func Load

func Load(location string, dim int, spaceType string) *HNSW

func New

func New(dim, M, efConstruction, randSeed int, maxElements uint32, spaceType string) *HNSW

func (*HNSW) AddPoint

func (h *HNSW) AddPoint(vector []float32, label uint32)

func (*HNSW) Free

func (h *HNSW) Free()

func (*HNSW) Save

func (h *HNSW) Save(location string)

func (*HNSW) SearchKNN

func (h *HNSW) SearchKNN(vector []float32, N int) ([]uint32, []float32)

func (*HNSW) SetEf

func (h *HNSW) SetEf(ef int)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL