mirror of
https://github.com/ruvnet/RuView
synced 2026-08-06 19:51:43 +00:00
32 lines
844 B
Rust
32 lines
844 B
Rust
//! Temperature-tiered vector quantization for the RuVector Format (RVF).
|
|
//!
|
|
//! Provides three quantization levels mapped to temperature tiers:
|
|
//!
|
|
//! | Tier | Quantization | Compression |
|
|
//! |------|-------------|-------------|
|
|
//! | Hot | Scalar (int8) | 4x |
|
|
//! | Warm | Product (PQ) | 8-16x |
|
|
//! | Cold | Binary (1-bit)| 32x |
|
|
//!
|
|
//! A Count-Min Sketch tracks per-block access frequency to drive
|
|
//! promotion/demotion decisions.
|
|
|
|
#![cfg_attr(not(feature = "std"), no_std)]
|
|
|
|
extern crate alloc;
|
|
|
|
pub mod binary;
|
|
pub mod codec;
|
|
pub mod product;
|
|
pub mod scalar;
|
|
pub mod sketch;
|
|
pub mod tier;
|
|
pub mod traits;
|
|
|
|
pub use binary::{decode_binary, encode_binary, hamming_distance};
|
|
pub use product::ProductQuantizer;
|
|
pub use scalar::ScalarQuantizer;
|
|
pub use sketch::CountMinSketch;
|
|
pub use tier::TemperatureTier;
|
|
pub use traits::Quantizer;
|