noop

package
v1.21.9 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2023 License: BSD-3-Clause 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{}

func NewIndex

func NewIndex() *Index

func (*Index) Add

func (i *Index) Add(id uint64, vector []float32) error

func (*Index) Delete

func (i *Index) Delete(id ...uint64) error

func (*Index) Drop

func (i *Index) Drop(context.Context) error

func (*Index) Dump

func (i *Index) Dump(labels ...string)

func (*Index) Flush

func (i *Index) Flush() error

func (*Index) ListFiles

func (i *Index) ListFiles(context.Context) ([]string, error)

func (*Index) PostStartup

func (i *Index) PostStartup()

func (*Index) SearchByVector

func (i *Index) SearchByVector(vector []float32, k int, allow helpers.AllowList) ([]uint64, []float32, error)

func (*Index) SearchByVectorDistance

func (i *Index) SearchByVectorDistance(vector []float32, dist float32, maxLimit int64, allow helpers.AllowList) ([]uint64, []float32, error)

func (*Index) Shutdown

func (i *Index) Shutdown(context.Context) error

func (*Index) SwitchCommitLogs

func (i *Index) SwitchCommitLogs(context.Context) error

func (*Index) UpdateUserConfig

func (i *Index) UpdateUserConfig(updated schema.VectorIndexConfig, callback func()) error

func (*Index) ValidateBeforeInsert added in v1.17.4

func (i *Index) ValidateBeforeInsert(vector []float32) error

Jump to

Keyboard shortcuts

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