Expand description
Sparse vector type for learned sparse retrieval (SPLADE, SPLADE++).
Internal representation: sorted Vec<(u32, f32)> — (dimension_index, weight).
Only nonzero entries stored — storage proportional to nnz, not total dimensions.
Structs§
- Sparse
Vector - A sparse vector: a set of (dimension_index, weight) pairs.
Enums§
- Sparse
Vector Error - Errors from sparse vector construction or parsing.