noop

package
v1.23.2 Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2024 License: BSD-3-Clause Imports: 7 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) AddBatch added in v1.22.0

func (i *Index) AddBatch(ctx context.Context, id []uint64, vector [][]float32) error

func (*Index) AlreadyIndexed added in v1.23.0

func (i *Index) AlreadyIndexed() uint64

func (*Index) Compressed added in v1.23.0

func (i *Index) Compressed() bool

func (*Index) ContainsNode added in v1.22.0

func (i *Index) ContainsNode(id uint64) bool

func (*Index) Delete

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

func (*Index) DistanceBetweenVectors added in v1.22.0

func (i *Index) DistanceBetweenVectors(x, y []float32) (float32, bool, error)

func (*Index) DistancerProvider added in v1.22.0

func (i *Index) DistancerProvider() distancer.Provider

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) ([]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) ShouldCompress added in v1.23.0

func (i *Index) ShouldCompress() (bool, int)

func (*Index) ShouldCompressFromConfig added in v1.23.0

func (i *Index) ShouldCompressFromConfig(config schema.VectorIndexConfig) (bool, int)

func (*Index) Shutdown

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

func (*Index) SwitchCommitLogs

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

func (*Index) TurnOnCompression added in v1.23.0

func (i *Index) TurnOnCompression(callback func()) 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