Skip to content

v3.2.0 — 1-Bit Binary Quantization (BQ), Online HNSW Healing & Geo-Spatial

Choose a tag to compare

@Sam-CodesAI Sam-CodesAI released this 24 Nov 04:44
· 7 commits to main since this release

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 u64 bitmask ($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_within Operator: Radius search in meters from any center point coordinate.
  • $geo_box Operator: 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/