Skip to main content

hermes_core/structures/vector/quantization/
mod.rs

1//! Vector quantization for IVF indexes
2//!
3//! TurboQuant (`tq`) is the float codec: training-free, used by both the
4//! per-segment flat scan and the trained-router IVF-TQ leaves.
5//!
6mod tq;
7
8#[cfg(feature = "native")]
9pub use tq::TqFlatBuilder;
10pub use tq::{
11    TQ_BLOCK_LANES, TQ_CODEC_VERSION, TqCodec, TqEncodeScratch, TqQueryPlan, tq_block_bytes,
12    tq_codes_column_len, tq_codes_column_len_checked, tq_expected_fingerprint, tq_ivf_block_bytes,
13    tq_ivf_codes_column_len_checked, tq_pack_block, tq_pack_ivf_block, tq_padded_dim,
14    tq_score_block, tq_score_ivf_block, tq_shared_codec,
15};