[][src]Crate hnsw

Re-exports

pub use generic_array::typenum;

Structs

DiscreteHNSW

This provides a HNSW implementation for any discrete distance function.

DiscreteSearcher

Contains all the state used when searching the HNSW

Euclidean

Any list, vector, etc of floats wrapped in Euclidean is to be treated as having euclidean distance.

GenericArray

Struct representing a generic array - GenericArray<T, N> works like [T; N]

HNSW

This provides a HNSW implementation for any distance function.

Hamming

Treats each bit contained in this struct as its own dimension.

Params
Searcher

Contains all the state used when searching the HNSW

Traits

ArrayLength

Trait making GenericArray work, marking types to be used as length of an array

DiscreteDistance
FloatingDistance

Type Definitions

u128x2

A 256-bit vector with 2 u128 lanes.

u128x4

A 512-bit vector with 4 u128 lanes.