#bm25 #retrieval #vector #indexing

bin+lib nvs-packer

CLI: Convert JSON docs to native-vector-store bundle (Rust)

1 unstable release

0.1.0 Sep 24, 2025

#609 in Compression

27 downloads per month

MIT license

195KB
5.5K SLoC

nvs-packer

CLI and library to convert JSON documents with embeddings into a Native Vector Store bundle.

Input JSON format

  • Array of objects. Each element must contain text (or content) and metadata.embedding (array of floats). Optional additional metadata fields are preserved.

Examples

cargo run -p nvs-packer -- \
  ./my-json --out ./.nvs-bundle \
  --dtype f16 --bm25-buckets 32 --compress zstd

As a library, call the loader and writer modules directly for custom flows.

Outputs

  • vectors.f32 or vectors.f16
  • meta.blocks + meta.idx
  • terms.dict, postings.bin, lexicon.bin, doclen.u32
  • manifest.json, checksums.xxhash64, receipts.txt

License: MIT

Dependencies

~12–24MB
~287K SLoC