Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Bruteforce ¶
type Bruteforce[T any] struct { // contains filtered or unexported fields }
Bruteforce is a naive implementation of vector index.
func NewBruteforce ¶
func NewBruteforce[T any](distanceFunc func(a, b T) float32) *Bruteforce[T]
func (*Bruteforce[T]) Add ¶
func (b *Bruteforce[T]) Add(v T) int
func (*Bruteforce[T]) SearchIndex ¶
func (*Bruteforce[T]) SearchVector ¶
type HNSW ¶
type HNSW[T any] struct { // contains filtered or unexported fields }
HNSW is a vector index based on Hierarchical Navigable Small Worlds.
func (*HNSW[T]) SearchIndex ¶
func (*HNSW[T]) SearchVector ¶
Click to show internal directories.
Click to hide internal directories.