Skip to main content

Module vector

Module vector 

Source
Expand description

Vector similarity and search primitives.

Structs§

VectorCodecError
A byte slice cannot contain a whole number of f32 values.
VisitedSet
Generation-based visited-node tracker for greedy search.

Enums§

DistanceMetric
Distance metric for vector similarity search.

Functions§

decode_f32_le
Decode little-endian values, refusing an incomplete final value. Empty input is valid; finite-value and dimension policies belong to callers.
decode_f32_native
Decode the host-native f32 ABI, refusing an incomplete final value.
encode_f32_le
Encode portable little-endian IEEE 754 values, without filtering any bit pattern.
encode_f32_native
Encode the host-native f32 ABI used by sqlite-vec. This is not a portable format.