Skip to main content

uni_sparse_vector/
lib.rs

1//! Learned-sparse (SPLADE / BGE-M3) vector type for the Uni graph database.
2//!
3//! A leaf crate with zero `uni-*` dependencies — the same layering as
4//! `uni-btic`. It owns the [`SparseVector`] type, its validating constructor,
5//! the lossless binary [`mod@encode`] codec, the pure scoring kernels in
6//! [`mod@ops`] (notably [`ops::sparse_dot`]), and [`SparseError`]. All
7//! glue — `Value`/`DataType` variants, Arrow lowering, CV tag framing, DDL,
8//! the index — lives in the integration crates that depend on this one.
9
10pub mod encode;
11pub mod error;
12pub mod ops;
13pub mod sparse;
14
15pub use error::SparseError;
16pub use sparse::SparseVector;