Documentation
¶
Index ¶
- type Index
- func (i *Index) Add(id uint64, vector []float32) error
- func (i *Index) AddBatch(ctx context.Context, id []uint64, vector [][]float32) error
- func (i *Index) AlreadyIndexed() uint64
- func (i *Index) Compressed() bool
- func (i *Index) ContainsNode(id uint64) bool
- func (i *Index) Delete(id ...uint64) error
- func (i *Index) DistanceBetweenVectors(x, y []float32) (float32, bool, error)
- func (i *Index) DistancerProvider() distancer.Provider
- func (i *Index) Drop(context.Context) error
- func (i *Index) Dump(labels ...string)
- func (i *Index) Flush() error
- func (i *Index) ListFiles(context.Context, string) ([]string, error)
- func (i *Index) PostStartup()
- func (i *Index) SearchByVector(vector []float32, k int, allow helpers.AllowList) ([]uint64, []float32, error)
- func (i *Index) SearchByVectorDistance(vector []float32, dist float32, maxLimit int64, allow helpers.AllowList) ([]uint64, []float32, error)
- func (i *Index) ShouldCompress() (bool, int)
- func (i *Index) ShouldCompressFromConfig(config schemaConfig.VectorIndexConfig) (bool, int)
- func (i *Index) Shutdown(context.Context) error
- func (i *Index) SwitchCommitLogs(context.Context) error
- func (i *Index) TurnOnCompression(callback func()) error
- func (i *Index) UpdateUserConfig(updated schemaConfig.VectorIndexConfig, callback func()) error
- func (i *Index) ValidateBeforeInsert(vector []float32) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Index ¶
type Index struct{}
func (*Index) AlreadyIndexed ¶ added in v1.23.0
func (*Index) Compressed ¶ added in v1.23.0
func (*Index) ContainsNode ¶ added in v1.22.0
func (*Index) DistanceBetweenVectors ¶ added in v1.22.0
func (*Index) DistancerProvider ¶ added in v1.22.0
func (*Index) PostStartup ¶
func (i *Index) PostStartup()
func (*Index) SearchByVector ¶
func (*Index) SearchByVectorDistance ¶
func (*Index) ShouldCompress ¶ added in v1.23.0
func (*Index) ShouldCompressFromConfig ¶ added in v1.23.0
func (i *Index) ShouldCompressFromConfig(config schemaConfig.VectorIndexConfig) (bool, int)
func (*Index) TurnOnCompression ¶ added in v1.23.0
func (*Index) UpdateUserConfig ¶
func (i *Index) UpdateUserConfig(updated schemaConfig.VectorIndexConfig, callback func()) error
func (*Index) ValidateBeforeInsert ¶ added in v1.17.4
Click to show internal directories.
Click to hide internal directories.