index

package
v1.0.23 Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Rerank added in v1.0.23

func Rerank(vectors []*db.Vector, searchQuery string)

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