Expand description
VectorCodec implementation for binary quantization.
Introduces the BinaryCodec wrapper struct (holding dim) and implements
the dual-phase trait using the sign-bit encoding and Hamming distance
functions from binary. The prepared query is pre-encoded to bits; both
symmetric and asymmetric distances delegate to hamming_distance.
Structsยง
- Binary
Codec - Binary quantization codec (sign-bit encoding, Hamming distance).
- Binary
Quantized - Thin newtype wrapping
UnifiedQuantizedVectorfor binary-encoded vectors.