Skip to main content

vecq_core/
lib.rs

1//! vecq — training-free 4-bit vector quantization and search.
2//!
3//! The "SQLite profile" for vector storage: single file, embedded,
4//! deterministic, no training pass. Vectors are rotated with a randomized
5//! Hadamard transform (seeded, stored in the file header) so coordinates
6//! become approximately N(0,1), then quantized with precomputed Lloyd-Max
7//! 4-bit tables and nibble-packed two dimensions per byte.
8
9pub mod format;
10pub mod lloyd;
11pub mod rhdh;
12pub mod store;
13
14pub use store::{cosine_f32, PreparedQuery, VecqIndex};