index

package
v1.0.19 Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Index

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

func NewIndex

func NewIndex(storage *db.DistributedStorage) (*Index, error)

func (*Index) Delete

func (i *Index) Delete(id string) error

func (*Index) Insert

func (i *Index) Insert(vector *db.Vector) error

func (*Index) Search

func (i *Index) Search(vector *db.Vector, k int) ([]*db.Vector, error)

Jump to

Keyboard shortcuts

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