When building low-latency RAG and voice AI pipelines, most teams get forced into one of two bad choices:

  1. Spin up a multi-container stack (Qdrant + Elasticsearch + reranker) with network hops, Docker overhead, and cloud bills.
  2. Use a lightweight local vector store that keeps gigabytes of float32 vectors in RAM, lacks real BM25/ColBERT hybrid search, and slows to a crawl on selective metadata filters.

I built SutraDB (MIT-licensed, v6.0.1) to solve both: a single embedded Rust SIMD hybrid search engine (Dense HNSW + BM25 + WAND Sparse + ColBERT) that ships natively to Python, Node.js/TypeScript, and Rust, or runs as a standalone zero-Python gRPC/HTTP server.

  • Python (pip): pip install sutradb-core==6.0.1 (PyPI) — Linux x86_64 & aarch64, macOS ARM64, Windows x64
  • Node.js / TypeScript (npm): npm install sutradb-core@6.0.1 (npm) — 5 native napi-rs binaries + sutradb-core/client
  • Rust (crates.io): cargo install sutradb-core --no-default-features (crates.io)

Here is how the v6.0.1 architecture works under the hood—and the exact numbers from benchmarking it head-to-head against ChromaDB 1.5.9.

1. Why Monolithic Vector Files Break at Scale (And Multi-Segment LSM)

Early versions of SutraDB stored an entire collection in one monolithic .sutra file. That works fine at 50K vectors, but at 1M+ vectors with deletes and updates, compacting or saving forces rewriting the entire file.

In SutraDB v6.0.1, every disk-backed collection uses a Multi-Segment LSM layout:

 text my_collection.lsm/ ├── MANIFEST.json # Atomic segment list + flushed LSN (temp -> fsync -> rename) ├── wal/ # SWB2 binary WAL tagged with monotonic u64 LSNs └── segments/ ├── seg_000001/ # Immutable, mmap-backed sealed segment │ ├── segment.sutra # Packed vectors + lazy offset-indexed payloads │ ├── segment.sutra.idx # Persisted HNSW, SQ8/BQ, BM25, RoaringBitmaps │ └── tombstones.rb # Atomic per-segment RoaringBitmap deletions └── seg_000002/