Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { SpaceType SpaceType Dim int MaxElements int M int EfConstruction int RandSeed int AutoIDEnabled bool }
Config provides configuration parameters for HNSW.
type HNSW ¶
type HNSW struct {
// contains filtered or unexported fields
}
HNSW is an interface to HNSW C code.
func (*HNSW) AddPointAutoID ¶
AddPointAutoID adds a new vector to the index.
func (*HNSW) MarkDelete ¶
MarkDelete marks an element with the given ID deleted. It does not really change the current graph.
type SpaceType ¶
type SpaceType string
SpaceType identifies a space type to be used by HNSW algorithm.
func SpaceTypeFromString ¶
SpaceTypeFromString makes a SpaceType value from string. Valid string values are: "ip", "cosine", or "l2".
Click to show internal directories.
Click to hide internal directories.