ملاحظات الإصدار

الإصدار 0.9.4-beta.1

التغييرات وملاحظات الترحيل والتوافق في هذا الإصدار.

للإصدار v0.9.4 عرض المصدر على GitHub ↗

This prerelease targets Python and Node.js applications that process batches of vectors, and hosts that rely on memory quotas, immutable generations, or offline migration. The Rust crate, CLI and Server sources, and npm package use 0.9.4-beta.1. PyPI uses 0.9.4b1 and npm uses the beta dist-tag.

Python and Node.js bindings

  • The bindings use PyO3 0.30. Python wheels use abi3-py39 and support GIL-enabled CPython 3.9–3.15. Batch search and both batch insert methods accept two-dimensional, C-contiguous, native-endian memoryviews matching the database dtype. Empty matrices must match the column count. Released views and dimension mismatches return structured errors.
  • Node.js 22, 24, and 26 share the Node-API 8 module for each platform. Batch APIs accept Float32Array for floating-point databases and BigUint64Array for fingerprint databases. Both languages retain nested-array inputs. The bindings snapshot inputs at the call boundary and transfer vector ownership to the core. Python releases the GIL during TQL execution and batch write commits.

To insert two vectors into an existing two-dimensional f32 Python database:

Python
from array import array

matrix = memoryview(array("f", [1, 0, 0, 1])).cast("B").cast("f", (2, 2))
ids = db.batch_insert(matrix, [{"name": "x"}, {"name": "y"}])

Queries, storage, and recovery

  • Hybrid and batch search validate the original configuration and vectors before preparing a QuIVer index. A rejected query could previously trigger a build and invalidate the published manifest. Configuration changes made by a hook are validated again. Hybrid search and text operators both require finite positive BM25 k1 and b in [0,1].
  • Batch search charges retained hits and payloads across the whole batch to the instance and shared workspace budgets, including results accumulated by one thread. An over-budget request releases its reservation on failure. QuIVer build and navigation admission errors report byte counts so hosts can adjust batch sizes or budgets.
  • Direct Rust MemTable inserts, replacements, and patches validate payloads and uniqueness before changing indexes and slots. Recovery inserts reject vectors containing NaN or infinity with TDB_INVALID_VECTOR and preserve slots and available IDs. WAL recovery rebuilds unique ownership from the final transaction state, including key swaps.
  • A rejected generation-manifest rename reports not_committed. A directory sync failure after a successful rename reports unknown. Offline migration retries check the full Pelorus configuration, including graph degree, navigation, and reranking. A changed destination configuration returns TDB_MIGRATION_CONFLICT.
  • Inline HTML spanning multiple Markdown parser events retains its text, line evidence, and source ranges. An empty source revision identifies source_revision as the offending field. Server startup validates that the configured timeout yields a representable deadline before opening the database.

Installation, upgrades, and validation

Shell
python -m pip install "triviumdb==0.9.4b1"
npm install triviumdb@0.9.4-beta.1
cargo add triviumdb@0.9.4-beta.1

Current-format 0.9.3 databases open directly. The main file format remains 15, WAL 7, and the index container 1. Take a directory snapshot before upgrading. If opening returns TDB_MIGRATION_REQUIRED, follow the offline migration guide to migrate into a new directory. SDK dimension migration preserves the source dtype.

Local Windows validation covered queries, concurrency, fault recovery, the migration tool, Server HTTP, and installed Python and npm artifacts. The commit CI and tag workflows record the results for each platform. Commit CI · Python and npm publishing · Server artifacts

The Chinese and English READMEs show how TQL follows citations from semantic seeds and reranks the results. The llms.txt guide describes when to choose Pelorus. Issues and Discussions have bilingual forms, and the PR description check exempts authors with repository write access.