Documentation ¶ Index ¶ func Rerank(vectors []*db.Vector, searchQuery string) type Index func NewIndex(storage *db.DistributedStorage) (*Index, error) func (i *Index) Delete(id string) error func (i *Index) Insert(vector *db.Vector) error func (i *Index) Search(vector *db.Vector, k int) ([]*db.Vector, error) Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func Rerank ¶ added in v1.0.23 func Rerank(vectors []*db.Vector, searchQuery string) Types ¶ type Index ¶ type Index struct { // contains filtered or unexported fields } func NewIndex ¶ func NewIndex(storage *db.DistributedStorage) (*Index, error) func (*Index) Delete ¶ func (i *Index) Delete(id string) error func (*Index) Insert ¶ func (i *Index) Insert(vector *db.Vector) error func (*Index) Search ¶ func (i *Index) Search(vector *db.Vector, k int) ([]*db.Vector, error) Source Files ¶ View all Source files index.go Click to show internal directories. Click to hide internal directories.