Documentation ¶
Index ¶
- type Index
- func (i *Index) Add(id uint64, vector []float32) error
- func (i *Index) Delete(id ...uint64) error
- 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, 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) Shutdown(context.Context) error
- func (i *Index) SwitchCommitLogs(context.Context) error
- func (i *Index) UpdateUserConfig(updated schema.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) PostStartup ¶
func (i *Index) PostStartup()
func (*Index) SearchByVector ¶
func (*Index) SearchByVectorDistance ¶
func (*Index) UpdateUserConfig ¶
func (i *Index) UpdateUserConfig(updated schema.VectorIndexConfig, callback func()) error
func (*Index) ValidateBeforeInsert ¶ added in v1.17.4
Click to show internal directories.
Click to hide internal directories.