Documentation
¶
Overview ¶
Package algorithm provides core interface
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Bit32 ¶
type Bit32 interface {
Search(ctx context.Context, vec []float32, size int, epsilon, radius float32) (any, error)
Insert(vec []float32) (uint, error)
InsertCommit(vec []float32, poolSize uint32) (uint, error)
BulkInsert(vecs [][]float32) ([]uint, []error)
BulkInsertCommit(vecs [][]float32, poolSize uint32) ([]uint, []error)
CreateAndSaveIndex(poolSize uint32) error
CreateIndex(poolSize uint32) error
SaveIndex() error
Remove(id uint) error
BulkRemove(ids ...uint) error
GetVector(id uint) ([]float32, error)
Closer
}
type Bit64 ¶
type Bit64 interface {
Search(ctx context.Context, vec []float64, size int, epsilon, radius float32) (any, error)
Insert(vec []float64) (uint, error)
InsertCommit(vec []float64, poolSize uint32) (uint, error)
BulkInsert(vecs [][]float64) ([]uint, []error)
BulkInsertCommit(vecs [][]float64, poolSize uint32) ([]uint, []error)
CreateAndSaveIndex(poolSize uint32) error
CreateIndex(poolSize uint32) error
SaveIndex() error
Remove(id uint) error
BulkRemove(ids ...uint) error
GetVector(id uint) ([]float64, error)
Closer
}
Click to show internal directories.
Click to hide internal directories.