Skip to content

v3.0.0 — Native Rust Core Engine, HNSW Indexing, SQ8 Quantization & Multi-Tenancy

Choose a tag to compare

@Sam-CodesAI Sam-CodesAI released this 24 Nov 03:15
· 11 commits to main since this release

🚀 SutraDB v3.0.0: Industrial-Grade Native Rust Core Rewrite

Official package release for sutradb-core on PyPI.

SutraDB v3.0.0 elevates SutraDB from a lightweight Python prototype into a high-throughput, memory-safe, industrial-grade hybrid vector and lexical database powered by native Rust and PyO3 C-FFI ABI3 extensions.

🌟 Key Architectural Upgrades

  • Native Rust Vector Kernel: SIMD-accelerated linear algebra (AVX-512, AVX2, ARM NEON) delivering 8-way parallel dot product, Euclidean distance, and cosine similarity with complete GIL release (py.allow_threads).
  • HNSW (Hierarchical Navigable Small World): Sub-linear approximate nearest neighbor graph index with dynamic layer routing, beam search, and heuristic edge pruning.
  • SQ8 Scalar Quantization: Asymmetric vector quantization compressing 32-bit floating point vectors down to 8-bit integers, providing 75% RAM footprint savings with $>98%$ recall.
  • Multi-Tenant Namespaces: Zero-leakage logical data isolation enabling thousands of separate customer domains within a single collection.
  • Secondary Categorical Inverted Indexing: Fast boolean bitmask AST filtering for $eq, $in, $gt, $gte, $lt, $lte, $contains.
  • Atomic WAL & Zero-Copy Storage: Append-only Write-Ahead Log with CRC32 integrity verification, automatic tail-healing, background compaction, and 64-byte aligned memory-mapped (memmap2) binary persistence.
  • FastAPI / Uvicorn Microservice: Hardened containerized service with Prometheus /metrics, /health, and idempotent /upsert endpoints.
  • Python HTTP Client SDK: Official SutraClient with connection pooling, retries, and comprehensive error handling.

📦 Installation

pip install sutradb-core==3.0.0

🛡️ Verification

  • Rust Integration Tests: 8/8 tests passing (cargo test).
  • Python Integration Tests: 42/42 tests passing (pytest tests/ -v).
  • Prebuilt Multi-OS Wheels: Linux (manylinux_2_34_x86_64), macOS Apple Silicon (macosx_11_0_arm64), Windows (win_amd64), and source distribution (sdist).