omendb_core/compression/mod.rs
1//! Vector compression for `OmenDB` storage
2//!
3//! Provides multiple compression methods:
4//! - Binary (BBQ): 32x compression, ~85% raw recall (~95% with rescore)
5//! - Scalar (SQ8): 4x compression, ~97% recall, 2-3x faster than FP32
6//! - RaBitQ: 8x compression, ~98% recall
7//! - FastScan: SIMD-accelerated batched distance computation (5x speedup)
8
9pub mod binary;
10pub mod fastscan;
11pub mod rabitq;
12pub mod scalar;
13
14pub use binary::{hamming_distance, BinaryParams};
15pub use fastscan::{
16 fastscan_batch, fastscan_batch_with_lut, FastScanLUT, BATCH_SIZE as FASTSCAN_BATCH_SIZE,
17};
18pub use rabitq::{
19 ADCTable, QuantizationBits, QuantizedVector, RaBitQ, RaBitQParams, TrainedParams,
20};
21pub use scalar::{symmetric_l2_squared_u8, QueryPrep, ScalarParams};