vecq_core/lib.rs
1//! vecq — training-free vector quantization and search at configurable
2//! width (4/5/6-bit, default 5-bit).
3//!
4//! The "SQLite profile" for vector storage: single file, embedded,
5//! deterministic, no training pass. Vectors are rotated with a randomized
6//! Hadamard transform (seeded, stored in the file header) so coordinates
7//! become approximately N(0,1), then quantized with precomputed Lloyd-Max
8//! tables and bit-packed LSB-first. [`view::VecqView`] serves the same
9//! file format zero-copy from any byte owner (e.g. an mmap).
10
11pub mod format;
12pub mod lloyd;
13pub mod rhdh;
14pub mod store;
15pub mod view;
16
17pub use store::{cosine_f32, PreparedQuery, VecqIndex};
18pub use view::VecqView;