Skip to main content

hermes_core/structures/vector/quantization/
mod.rs

1//! Vector quantization for IVF indexes
2//!
3//! Residual Product Quantization with OPQ is the trained float codec;
4//! TurboQuant (`tq`) is the training-free per-segment codec.
5//!
6mod pq;
7mod tq;
8
9pub use pq::{DistanceTable, PQCodebook, PQConfig};
10#[cfg(feature = "native")]
11pub use tq::TqFlatBuilder;
12pub use tq::{
13    TQ_BLOCK_LANES, TQ_CODEC_VERSION, TqCodec, TqEncodeScratch, TqQueryPlan, tq_block_bytes,
14    tq_codes_column_len, tq_codes_column_len_checked, tq_expected_fingerprint, tq_ivf_block_bytes,
15    tq_ivf_codes_column_len_checked, tq_pack_block, tq_pack_ivf_block, tq_padded_dim,
16    tq_score_block, tq_score_ivf_block,
17};