릴리스 노트

버전 0.9.4-beta.2

이 릴리스의 변경 사항, 마이그레이션 안내, 호환성.

v0.9.4 기준 GitHub에서 원본 보기 ↗

This prerelease covers changes since 0.9.4-beta.1. Applications that need only node IDs can skip reading and converting hit payloads. Graph queries can report capped path enumeration, and WAL group commit retains the highest durability requested by writes in the group. Rust, CLI, Server and npm use 0.9.4-beta.2, PyPI uses 0.9.4b2, and the npm channel is beta.

Vector retrieval and QuIVer

  • Added single and batch ID-only search. Pure vector queries skip result payload reads and object construction. Python single-vector search accepts contiguous one-dimensional buffers of the matching dtype, and batch ID search accepts two-dimensional buffers.
  • General vector search accepts an optional ann_rerank_limit (annRerankLimit in Node.js) to set the QuIVer reranking candidate budget independently. Navigation width covers at least the effective rerank budget.
  • Corrected QuIVer candidate budgeting in the general search entry points. The default navigation width follows the final Top-K, and an explicit recall pool controls navigation width. Single ANN queries run directly on the request thread. Pure vector queries use the final Top-K and the kernel rerank budget, then load payloads for the returned results.
  • Compressed QuIVer queries read the active node count in constant time. Incremental deletions update the count, and loading an existing index reconstructs it from tombstones. With use_for_ann enabled, regular vector and ID searches use the configured compressed reranker directly.
  • QuIVer builds for the same vector generation share one snapshot and workspace. A manual waiter confirms publication of the requested configuration. Transactions invalidate degraded indexes after deletes, and the next build reserves its own workspace.
  • Exact cosine Top-K breaks ties by ID when scores round to zero. Search diagnostics distinguish QuIVer, exact scans, and filtered fallback. Dimension migration preserves the Pelorus curvature and build settings so vector backfills follow the source database’s Poincaré ball constraint.

TQL, graphs, and documents

  • Multi-source weighted paths retain exact costs through route selection. Batched paths share traversal limits, and path_truncated() reports when the enumeration cap affects an aggregate. Shortest paths reserve instance and shared workspace. Final pipeline projection charges the query payload budget and appears in PROFILE.
  • TQL selects DISTINCT representatives by stable binding identity for ordinary unranked matches and finds. Plain MATCH skips empty pages after semantic validation. Console MATCH CREATE charges the operation budget for new nodes and edges.
  • MATCH aggregation and tie-breaking use entity identities. TQL strings decode JSON escapes. Explicit named-edge pages stop at the requested row count, and FIND property projections skip vector and edge snapshots.
  • TQL breaks aggregate ties using typed group values before pagination. Cross-type comparisons return false. Node Prepared accepts bigint across the full 64-bit integer domain. Composite-index planning collects statistics for the field pairs the query uses in a single pass.
  • Scoped graph, document retrieval and context workspaces count against both the instance and shared runtime. Text retrieval admits the selected posting indexes and checks cancellation while scanning hits. Named-edge MATCH charges isolated anchors, reads endpoint properties on demand and validates ranking vectors for empty pages. Planning derives field correlations from bounded composite index keys.
  • Evidence windows resolve original source coordinates together within each document revision. Named graph edits read the expected revision directly. Opening and publishing immutable generations hash each manifest file once per verification. Node searchHybrid accepts an optional trailing annRerankLimit.
  • Floating-point cognitive stages check dtype, cancellation and workspace. Residual recall retains the top K candidates. DPP computes its quality diagonal from the actual vectors. Rust nmf_multiplicative_update returns Result<(Vec<f32>, Vec<f32>)>. Callers can propagate invalid matrix shapes with ?.
  • Named graph traversal charges the returned subgraph. Document context locates all windows in one pass per revision. FISTA uses double-precision intermediates, propagates empty input and charges a secondary scan only when needed. Graph diffusion skips seed redistribution for zero restart energy.
  • FIND stops scanning once it satisfies an explicit LIMIT. DPP preserves direction under rescaling and produces consistent ranking prefixes. Rust NMF query analysis uses double-precision projection. Read-only index statistics count each posting once, and Mmap diagnostics recognize the active generation's payload file.

Memory limits, durability, and recovery

  • Group commit honors the strongest sync mode used by writes in the group. Offline migration publishes staging ownership atomically and can retry an empty legacy stage. CLI export directs managed documents to snapshots and preserves the destination on error.
  • Rom and Mmap validate property index definitions against the checkpoint length, including catalogs on empty databases. Rust MemTable::rebuild_property_indexes_from_definitions returns Result<()>, preserves uniqueness, and retains the previous catalog on failure or cancellation. index_memory_stats().persisted_bytes measures the published .idx file including alignment padding.
  • Search checks instance and shared memory limits before decoding hit payloads and accounts for retained batch results. WAL recovery budgets frame buffers and pending operations separately. WAL replay and checkpoint loading in both Rom and Mmap modes estimate node payload decoding costs from the JSON structure. Generation manifests are published under the checkpoint lock.
  • Payload reads charge the original JSON length on cache hits and misses. PROFILE reports bytes actually decoded. Instance and shared limits cover point reads, outgoing edges, archived documents, Pelorus scratch space, and keyword compilation. Rust MemTable::build_text_index returns Result<()> and supports retry after increasing the budget. Graph pipeline budgets and profiles include path and provenance storage.
  • Conditional updates and property index verification reserve memory before decoding stored payloads. Concurrent graph snapshots, full ID enumeration, and GraphFirst deduplication account for both instance and shared memory. Both Node batch search methods deliver resource admission failures and cancellation through their returned promises.
  • Filter decoding, cognitive reranking matrices, scalar TQL and neighborhood traversal use the remaining instance budget. Queued Node.js batch searches read the instance limit when execution begins. Fatigue updates take effect after successful search completion. PROFILE counts bytes decoded on cache misses.

SDKs, CLI, and HTTP

  • Node declares QueryRow[] for ordinary and prepared TQL, with string IDs in projected nodes. Python propagates row conversion errors and marks post-commit receipt conversion failures as committed. Generation leases preserve I/O errors. CLI WAL status follows checkpoint state.
  • HTTP binary vector search applies the threshold to vector scores. Both vector and batch node JSON responses enforce the 16 MiB limit. Python and Node.js diagnostic search default to zero graph expansion. Single and batch vector search reject a zero Top-K.
  • Edge pages, reachability, GraphFirst anchors and Python/Node.js batch query inputs reserve both instance and shared memory. HTTP shortest-path searches stop upon finding the target and return a zero-hop path for an existing node queried against itself.
  • Server query responses negotiate JSON and NDJSON using Accept weights. Node HTTP ETags cover both node version and database generation. The Windows migration tool extracts artifact suffixes from the actual directory entry, and the CLI reports errors from interactive commands.

Installation and upgrades

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

For an existing two-dimensional f32 database, the following query accepts a contiguous buffer and returns up to ten IDs. The recall pool and the reranking candidate count are configured independently.

Python
from array import array

query = memoryview(array("f", [1.0, 0.0]))
ids = db.search_ids(query, top_k=10, recall_k=64, ann_rerank_limit=32)

Current-format databases from 0.9.3 and 0.9.4-beta.1 open directly. The main file format is 15, WAL is 7, and the index container is 1. Take a directory snapshot before upgrading. If opening returns TDB_MIGRATION_REQUIRED, migrate into a new directory and verify it using the offline migration guide. Rust hosts that call the low-level functions listed above should handle their new Result values, for example by propagating errors with ?.

Validation and benchmark interpretation

Targeted Windows validation covered corrupt WAL frames and committed prefixes, the Rom/Mmap index state machine, controlled concurrency, 46 Server HTTP contracts, and Python and Node result types. ANN benchmarks validate Top-K and distinct IDs for every query and calculate recall outside the timed query interval. Use the same timing protocol when comparing QPS with previous releases. Platform and packaging results are recorded in commit CI and the release workflow.