vecq-core 0.2.0

Training-free RHDH + Lloyd-Max 4-bit vector quantization with asymmetric scoring
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
//! vecq — training-free 4-bit vector quantization and search.
//!
//! The "SQLite profile" for vector storage: single file, embedded,
//! deterministic, no training pass. Vectors are rotated with a randomized
//! Hadamard transform (seeded, stored in the file header) so coordinates
//! become approximately N(0,1), then quantized with precomputed Lloyd-Max
//! 4-bit tables and nibble-packed two dimensions per byte.

pub mod format;
pub mod lloyd;
pub mod rhdh;
pub mod store;

pub use store::{cosine_f32, PreparedQuery, VecqIndex};