hermes-core 1.8.84

Core async search engine library with WASM support
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
//! Vector quantization for IVF indexes
//!
//! Residual Product Quantization with OPQ is the trained float codec;
//! TurboQuant (`tq`) is the training-free per-segment codec.
//!
mod pq;
mod tq;

pub use pq::{DistanceTable, PQCodebook, PQConfig};
#[cfg(feature = "native")]
pub use tq::TqFlatBuilder;
pub use tq::{
    TQ_BLOCK_LANES, TQ_CODEC_VERSION, TqCodec, TqEncodeScratch, TqQueryPlan, tq_block_bytes,
    tq_codes_column_len, tq_codes_column_len_checked, tq_expected_fingerprint, tq_ivf_block_bytes,
    tq_ivf_codes_column_len_checked, tq_pack_block, tq_pack_ivf_block, tq_padded_dim,
    tq_score_block, tq_score_ivf_block,
};