Repository navigation
Releases
v5.1.0: Zero-Build Embedded Developer Workbench
🚀 SutraDB v5.1.0: Zero-Build Embedded Developer Workbench Edition
🌟 What's New in v5.1.0
SutraDB v5.1.0 introduces a zero-build, zero-external-CDN Embedded Developer Workbench directly served from the engine at http://localhost:8765/ui.
🛠️ Interactive Workbench Capabilities
- ⚡ Hybrid Query Lab:
- Execute dense semantic vector search, BM25 keyword search, and hybrid multi-modal search.
- Interactive Reciprocal Rank Fusion (RRF) balance slider (
0.0to1.0). - Rich metadata JSON AST filtering with real-time microsecond latency telemetry (
⚡ < 1.00ms).
- 📥 Ingestion & Batch Upsert Lab:
- Interactive single document ingestion with vector and metadata editors.
- Drag-and-drop or paste bulk JSON / JSONL batch ingestion zone.
- 🗂️ Document Explorer:
- Live paginated collection document viewer.
- In-place metadata patch modal and instant document deletion.
- 📊 2D Vector Projection (PCA):
- HTML5 Canvas eigenvalue/PCA projection mapping vector clusters into 2D space with hover inspect tooltips.
- 🛠️ Collection Administration:
- Full collection lifecycle controls: create, inspect stats, drop, and trigger compaction.
- 1-click index building: HNSW graphs, SQ8 scalar quantization, BQ binary quantization, and PQ product quantization.
- 💻 Dynamic Client Code Generator:
- Real-time syntax-highlighted code snippets for Python SDK, LangChain, cURL REST, and Rust gRPC.
📦 Distribution Channels
- PyPI:
pip install sutradb-core==5.1.0(View on PyPI) - Docker Hub:
docker pull samcodesai/sutradb:5.1.0(View on Docker Hub) - GitHub Packages (GHCR):
docker pull ghcr.io/sam-codesai/sutradb:5.1.0 - Standalone Binary:
sutradb-serverattached below.
v5.0.0: Industrial Distributed Edition (gRPC, ColBERT MaxSim, Quad-Modal Search)
⚡ SutraDB v5.0.0: Industrial Distributed Edition
SutraDB v5.0.0 is an enterprise milestone release delivering sub-0.4ms query latencies, multi-vector late interaction retrieval, complete container hardening, and multi-cloud Kubernetes orchestration.
🚀 Key Innovations & Architectural Upgrades
- Native Binary gRPC Engine (
sutradb-server): Built directly in Rust usingtonic(HTTP/2) andprost(Protocol Buffers) on port50051. Raw IEEE-754 binary streaming eliminates 3–5ms JSON serialization overhead for sub-0.4ms query round-trip latency. - Quad-Modal Hybrid Retrieval: Unifies Dense (HNSW / IVF-Flat), BM25 Lexical, SPLADE Neural Sparse, and ColBERT MaxSim Multi-Vector retrieval with Reciprocal Rank Fusion (RRF).
- ColBERT MaxSim Late-Interaction: Multi-vector token embedding support with GPU/SIMD-accelerated token-to-token MaxSim scoring.
- ACORN & Secondary Metadata Indexing: Bitmap-accelerated inverted filtering that bypasses HNSW graph traversal on highly-selective predicate queries.
- Supply-Chain Hardened Containerization: Multi-stage production
Dockerfilerunning strictly under non-root UID10001:10001, dual-daemon supervisor (docker-entrypoint.sh), and zero-dependency healthcheck probe (sutra-healthcheck.py). - Production Kubernetes Manifests: StatefulSet, headless service, ClusterIP, and ConfigMap supporting automated rollout and persistent storage claims.
- Zero-Build Embedded Developer Workbench: Dark-mode Bento Grid web management console served directly from port
8765/uiwith live 2D PCA vector projections, RRF tuning sliders, and instant polyglot code generation. - Exhaustive Hardening & Reliability: 182 / 182 automated tests passing with zero regressions across concurrency, WAL recovery, SQ8 quantization, and PyO3 multi-threading.
📦 Packages & Distribution
- PyPI:
pip install sutradb-core==5.0.0 - Docker Hub:
docker pull samcodesai/sutradb:5.0.0 - GitHub Container Registry:
docker pull ghcr.io/sam-codesai/sutradb:5.0.0
v3.4.0: Hardware & NLP Scaling (SIMD Auto-Dispatch, Rayon Multicore & Multi-Lingual NLP)
सूत्र DB (SutraDB) v3.4.0: Hardware & NLP Scaling Edition
🚀 Hardware Scaling & Multicore Vector Acceleration
- Dynamic SIMD Auto-Dispatch: Runtime CPU feature detection with automatic dispatch across AVX-512, AVX2, and ARM NEON instruction sets, with graceful scalar fallbacks.
- Multicore Rayon Acceleration: GIL-free multicore parallel processing via Rayon iterators for batch vector distances and unindexed candidate scoring.
- Python Bindings: Exposed
detect_simd()andbatch_vector_distances()directly to Python.
🌐 Linguistic NLP Analyzer Pipeline
- Algorithmic Porter Stemmer: Zero external C dependencies; full English Porter stemming integrated into the Rust BM25 engine and Python SDK.
- Multi-Lingual Suffix Stemmers: Built-in rule-based suffix stemming for Spanish, French, and German.
- Zero-Allocation Multi-Lingual Stopwords: Pre-compiled static hash sets for English, Spanish, French, and German stopword pruning.
- CJK Tokenization: Bigram sliding window tokenization for Chinese, Japanese, and Korean text.
- Code & Identifier Splitting: Intelligent sub-token parsing for
camelCaseandsnake_caseprogramming identifiers (getUserProfile->['get', 'user', 'profile']). - Flexible Configuration:
AnalyzerConfigsupported in both RustNativeCollection::with_analyzerand PythonCollection(analyzer=...).
🧪 Test Suite
- 97 Passing Tests (28 Rust + 69 Python): 100% pass rate with zero warnings.
v3.3.0 — Product Quantization (PQ) with Asymmetric Distance Computation (ADC)
सूत्र DB (SutraDB) v3.3.0 Release Notes
🚀 Industrial Milestone: Product Quantization (PQ) with ADC
SutraDB v3.3 introduces Product Quantization (PQ) with Asymmetric Distance Computation (ADC), bringing industrial-grade memory compression and sub-millisecond similarity queries directly into SutraDB's native Rust SIMD core and Python SDK.
📦 Key Highlights & Capabilities
-
Sub-Space Vector Decomposition (
$M$ Subspaces):- Decomposes high-dimensional vector spaces into
$M$ orthogonal sub-spaces (e.g. 1536 dims into 96 sub-spaces of 16 dims). - Trains k-means centroids (
$K=256$ ) for each sub-space with automatic$M$ divisor selection viasuggest_m. - Compresses 32-bit floating point vectors into 1-byte code indices per subspace, delivering up to 64x RAM reduction (e.g. 100K 128-dim vectors in ~3.2 MB RAM).
- Decomposes high-dimensional vector spaces into
-
Asymmetric Distance Computation (ADC):
- Unquantized query sub-vectors are projected against codebook centroids once to precompute an
$M \times 256$ float Look-Up Table (LUT), fitting entirely inside CPU L1 cache. - Vector distance calculation is reduced to table lookup indexing and SIMD addition, bypassing all floating-point multiplications.
- Two-stage search: fast ADC candidate ranking + full-precision exact reranking of top candidate pool for >95% recall.
- Unquantized query sub-vectors are projected against codebook centroids once to precompute an
-
Native Rust Core & PyO3 Integration:
-
PQConfig,PQCodebook, andPQVectorimplemented insrc/distance/pq.rs. - Native collection bindings
train_pqandenable_pqexposed viasrc/py_api.rsandsrc/collection.rs.
-
-
Python SDK & Embedded Web UI Integration:
- Pure Python / NumPy fallback implementation in
sutradb.quantization.PQCodebook. -
col.train_pq()andcol.enable_pq()integrated with automatic ADC two-stage reranking insutradb.core.Collection. - REST microservice endpoint
POST /collections/{name}/pqand embedded 2026 dark-mode web console button for 1-click PQ training.
- Pure Python / NumPy fallback implementation in
-
Exhaustive Testing:
- 82 total passing automated tests across Rust (19 tests) and Python (63 tests).
📥 Installation
pip install --upgrade sutradb-corev3.2.0 — 1-Bit Binary Quantization (BQ), Online HNSW Healing & Geo-Spatial
What's Changed in SutraDB v3.2.0 ⚡
1. 1-Bit Binary Quantization (BQ) — 32x RAM Reduction & Sub-Microsecond Search
-
Bitwise Compression: Quantizes 64 float32 dimensions into a single
u64bitmask ($v_i \ge 0.0 \to 1$ ). - Hardware POPCNT Distance: Sub-microsecond Hamming distance evaluation via CPU hardware bitcount instructions.
-
Two-Stage Retrieval: Stage 1 performs fast Hamming distance candidate pruning over 1-bit bitmasks; Stage 2 performs exact full-precision reranking of the candidate pool for
$>95%$ recall.
2. Dynamic Online HNSW Graph Node Deletion & Edge Healing
- On-the-Fly Re-wiring: Dynamically removes nodes from the HNSW graph and reconnects affected neighbors to mutual neighbors when node degree drops below minimum threshold.
- Entry Point Re-election: Automatically re-elects a valid entry point from the highest available layer if the entry point node is deleted.
- Zero Graph Fragmentation: Eliminates tombstone bloat and graph severance over high-churn workloads without requiring offline compaction.
3. Geo-Spatial Metadata Filtering ($geo_within & $geo_box)
- Great-Circle Haversine Distance: Native Haversine formula in meters across pure Rust and Python.
-
$geo_withinOperator: Radius search in meters from any center point coordinate. -
$geo_boxOperator: Rectangular bounding box containment queries. -
Coordinate Flexibility: Full support for coordinate arrays
[lat, lon]and objects{"lat": ..., "lon": ...}.
4. Verification & Testing
- Rust Integration Tests: 17/17 tests passing.
- Python Integration Tests: 59/59 tests passing.
- Web Management Dashboard: Added 1-Bit BQ activation button and geo-spatial query templates.
PyPI Package: https://pypi.org/project/sutradb-core/3.2.0/
v3.1.0 — LangChain/LlamaIndex Official Connectors, Embedded Web Console, Nested AST Filtering
🚀 SutraDB v3.1.0: Ecosystem Connectors, Embedded Web Console & Nested Filtering
Official package release for sutradb-core v3.1.0 on PyPI.
This release bridges high-performance systems engineering with developer ergonomics, introducing official LangChain/LlamaIndex vector stores, an embedded zero-dependency Web UI dashboard, and nested JSON AST metadata filtering.
🌟 Key Additions in v3.1.0:
- Official LangChain VectorStore (
sutradb.integrations.langchain.SutraDBVectorStore):- Drop-in replacement for LangChain
VectorStore. - Supports
similarity_search,similarity_search_with_score, and Maximal Marginal Relevance (max_marginal_relevance_search/ MMR) diversity reranking. - Native
as_retriever()for LangChain chains and RAG pipelines.
- Drop-in replacement for LangChain
- Official LlamaIndex VectorStore (
sutradb.integrations.llamaindex.SutraDBLlamaIndexVectorStore):- Full support for LlamaIndex
TextNodeobjects and cascadingref_doc_iddeletions. - Supports
DEFAULT(dense vector),SPARSE(BM25 lexical), andHYBRID(Reciprocal Rank Fusion) query modes.
- Full support for LlamaIndex
- Embedded Web Management Dashboard (
/ui&/dashboard):- High-craft, dark-mode 2026 Bento Grid management console served directly from the microservice at
http://localhost:8765/ui. - Zero external CDN dependencies (works completely offline and in air-gapped container environments).
- Features an interactive hybrid query playground, 1-click collection administration (HNSW / SQ8 / Compaction), and real-time client code generation.
- In-Browser 2D Vector PCA Projection: Dynamically computes principal component eigenvectors in JavaScript and visualizes vector embeddings on an interactive HTML5 Canvas with hover tooltips.
- High-craft, dark-mode 2026 Bento Grid management console served directly from the microservice at
- Nested JSON Metadata & Array AST Filtering:
- Dot-notation path access (
user.profile.city,tags.0,metrics.score). - Added array containment operators:
$all,$size, and$regex.
- Dot-notation path access (
- Prebuilt Multi-Platform Wheels: Linux (
manylinux_2_34_x86_64), macOS Apple Silicon (macosx_11_0_arm64), Windows (win_amd64), and source distribution (sdist). - 58/58 Passing Tests: 8 native Rust integration tests + 50 Python test suite passing.
📦 Installation:
pip install sutradb-core==3.1.0v3.0.0 — Native Rust Core Engine, HNSW Indexing, SQ8 Quantization & Multi-Tenancy
🚀 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/upsertendpoints. -
Python HTTP Client SDK: Official
SutraClientwith 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).
v2.2.0 — PyPI Production Release (FastAPI ASGI & Candidate-Pruned RRF)
🚀 SutraDB v2.2.0 (PyPI Distribution Release)
Official package release for pypi.org/project/sutradb-core:
- FastAPI + Uvicorn ASGI Server: High-concurrency async document CRUD & hybrid search endpoints.
-
Fair
ReadWriteLock: Writer-preference concurrency with reader re-entrancy tracking. - Bitmask Soft-Deletion & WAL Durability: (1)$ zero-reallocation soft deletion.
-
Candidate-Pruned RRF:
$<2 hybrid queries ((M \log M)$ complexity). - 100% Passing Tests: 38/38 unit and benchmark tests green.
v2.0.0 — Distributed Vector Core, FastAPI ASGI & Candidate-Pruned RRF
🚀 SutraDB v2.0.0 Major Release
- FastAPI + Uvicorn ASGI Server: High-concurrency async endpoints for document CRUD (
POST /collections/{name}/documents,GET,DELETE, andPOST /collections/{name}/query). - Fair Concurrency (
ReadWriteLock): Writer-preference locking with reader re-entrancy tracking eliminating writer starvation under heavy read volume. - Tombstone Soft-Deletion & WAL Durability: Operations recorded to Write-Ahead Log with bitmask tombstones for (1)$ zero-reallocation soft deletion.
- Candidate-Pruned Hybrid RRF: Accelerated reciprocal rank fusion over top-$ candidate unions reducing algorithmic complexity from (N \log N)$ to (M \log M)$ ($< 2 hybrid search).
- 100% Green CI: 38/38 unit and benchmark tests passing across Python 3.10, 3.11, and 3.12.
v1.0.0 — Zero-Dependency Hybrid Vector Search & BM25 Engine
सूत्र DB (SutraDB) v1.0.0 (Production Milestone)
- Pure Python & NumPy BLAS: Zero heavy C/C++ dependencies, lightweight and embeddable anywhere.
- Hybrid Search Core: Dense SIMD vector search combined with Robertson-Spärck Jones BM25 ranking.
- Inverted File Flat (IVF-Flat): High-speed approximate nearest neighbor (ANN) vector clustering.
- Automated Multi-Python CI: Verified passing test suite across Python 3.10, 3.11, and 3.12.