Notes de version

Version 0.9.3-beta.1

Changements, notes de migration et compatibilité de cette version.

Pour v0.9.4 Voir la source sur GitHub ↗

This prerelease adds Pelorus for fixed-curvature hyperbolic vectors. QuIVer remains the default for ordinary vector ANN queries. Both indexes share SSD read infrastructure. Other changes improve WAL recovery, graph query budgeting and SDK result consistency.

Query results and numerical behavior

  • Each FIND result column reads its own field. Indexed equality lookup supports a payload field named id. Plain WITH preserves matches from parallel edges, and explicit set operations merge identical bindings.
  • Weighted shortest paths, Yen, harmonic centrality and HITS charge graph construction and subsequent adjacency scans against the same stage budget. BM25 uses double-precision intermediates to rank documents with large finite K1 values. Python, Node.js and TQL round double-precision components to the nearest binary16 value, including subnormals and values near the largest finite component.

SSD reads and accounting

  • QuIVer SSD direct reads share aligned pages within a file generation and coalesce pending reads across queries. Reranking can score validated cache hits while other records are in flight. Linux adds an explicit io_uring mode for batched reads with a registered file and aligned buffers. See the QuIVer I/O configuration for resource and platform requirements.
  • Windows QuIVer SSD direct reads use IOCP to submit batches and handle individual completions on one dispatcher thread. IOCP and io_uring size fixed buffer slots according to device alignment and read span. Runtime statistics expose the fixed buffer payload size in io_fixed_buffer_bytes.
  • QuIVer compressed reranking can measure logical cold reads, system reads, and row and page reuse per request. Rust exposes the counters through measure_io. Python and Node callers can set profile_io on compressed searches to retrieve the counters with their results.
  • On Linux kernels without STATX_DIOALIGN, QuIVer can obtain XFS direct-read alignment with XFS_IOC_DIOINFO. A native read validates the selected geometry, reducing read amplification from the conservative 64 KiB window.

Pelorus hyperbolic retrieval

  • Added an opt-in Pelorus hyperbolic index. Fixed-curvature graph construction, geometry-aware navigation, and exact Poincaré scans use the same stored vector facts. Pelorus supports document and named-graph scopes, Hot/Mmap/SSD residency, and the unified index container.
  • Successful Pelorus builds persist the curvature, which is included in the durable fact fingerprint. The Server updates its ETag according to the publication outcome. Pelorus validates options even for empty batches, budgets the cumulative response payload, and compares document thresholds at the precision of the returned score. Node.js provides a structured diagnostic for missing arguments to pelorusRequest().
  • Pelorus lazy rebuilds recheck the configuration and vector generation before installing derived indexes. The SDK budgets actual JSON response bytes. Document queries report a query error for scores outside the finite f32 range.

For a database containing two-dimensional Poincaré embeddings with curvature parameter 1, build the index and order the TQL results by proximity. Each vector must satisfy c · ‖x‖² < 1. The vector SDK returns geodesic distance. TQL exposes its negative through similarity(_).

Shell
tdb build-pelorus notes.tdb --config '{"curvature":1.0,"navigation":"geometry_bq2"}'
TQL
SEARCH PELORUS {vector: [0.12, 0.0], options: {top_k: 5}}
RETURN _.id AS id, similarity(_) AS score
ORDER BY score DESC, id

Recovery, resource limits and public interfaces

  • Snapshots protect the source artifact paths, validate that the index container belongs to the database, and check cancellation before publishing a restore. Generation reclamation validates both the active database and the target generation. The CLI reports a missing base checkpoint when only a WAL is present.

  • Checkpoint encoding uses the maintenance quota. Queries check their budgets before reading or parsing payloads. Simple paths contain unique nodes. Bounded path queries report truncation upon finding an omitted path or exhausting the traversal budget.

  • Snapshots, dimension migration, and CLI exports share source artifact protection, including Windows Unicode case aliases. Snapshot verification and migration publication honor request cancellation. prepare_generation() rejects existing generations and the reserved current.json name.

  • Scans stop before allocating a result row beyond the budget. Partial bidirectional shortest-path queries retain paths already found. The CLI repair check validates the full header. Low-level recovery inserts reject duplicate IDs and automatic allocation starts at a valid ID.

  • When the main file is missing, database creation checks the entire reserved file family. CLI repair checks and dumps preserve recovery evidence, and header probing retains the original error category. Snapshot, immutable, and generation readers validate the live node count, including checkpoints with deleted slots.

  • New checkpoints bind the WAL to the database for every workload. WAL creation and reset use a synced candidate file and atomic publication. Staged document writes record the outcome at commit, so callers can use the receipt and upload sequence to decide where to resume.

  • Document, named graph, Pelorus, and QuIVer JSON requests reserve both instance and shared workspace. Payload reads charge logical bytes on cache hits and misses. QuIVer pipeline reranking accounts for candidates read, and traversal stages report visited nodes and examined edges.

  • Serial and parallel betweenness charge the edges examined, reduce sampled sources in bounded batches, and count shortest paths in log space. Leiden reserves workspace before cloning vectors and sums centroid coordinates exactly. PageRank breaks score ties by node ID, and equally sized weakly connected components are sorted by member IDs. Shortest-path traversal and reconstruction check cancellation.

  • The Server validates queue and read concurrency limits before opening the database. Index inspection and manual build handle acquisition use the read scheduler. Node.js returns node counts, edge counts, and traversal depth as safe JavaScript integers and reports a structured error outside that range.

Installation, upgrades and validation

Shell
cargo add [email protected]
python -m pip install "triviumdb==0.9.3b1"
npm install [email protected]

npm uses the beta channel. Take a full snapshot before upgrading. Current-format 0.9.2 file groups open directly with main format 15, WAL 7 and unified index container 1. The first writable checkpoint after upgrading publishes a WAL baseline seal. Building Pelorus explicitly enables curvature checks on subsequent writes. To roll back, restore the pre-upgrade snapshot. If opening returns TDB_MIGRATION_REQUIRED, run the matching external migration tool with --check, then --execute to publish to a new directory.

Local regression coverage includes core queries, concurrency, recovery and Python/Node package contracts on Windows. See the CI runs for commit-specific platform results and the package workflow for tagged artifacts. SSD backend selection depends on the operating system, filesystem and device alignment. Use per-request counters for measurements on your workload.