Repository navigation
Releases
Recern Vector 1.0.0
Recern Vector 1.0.0 stabilizes the documented Rust, Python, Node.js, HTTP and CLI interfaces, with a 1.x compatibility and deprecation policy.
This release fixes stale collection handles after drop/recreate, closed-client behavior, unsafe numeric and JSON inputs, bounded Qdrant request deadlines, and recovery durability barriers. Crash-injection tests cover interrupted WAL commits, checkpoints and upgrades, partial writes, ambiguous acknowledgements and matched snapshot/WAL restoration. See the changelog and API/recovery audit.
pip install recern-vector==1.0.0
cargo add recern-vector@1.0.0
cargo add recern-vector-client@1.0.0
cargo install recern-vector-cli --version 1.0.0 --locked
cargo install recern-vector-server --version 1.0.0 --locked
npm install @recern/vector@1.0.0- Tested native CLI/server and Node artifacts: Linux x64/ARM64 (glibc 2.35+), macOS Intel/Apple silicon (13+) and Windows x64. Python ABI3 wheels and sdist are included. Rust requires 1.89+, Python 3.11+, Node.js 22+ and TypeScript 5.2+.
@recern/vectorselects an exact-version optional native package. Keep optional dependencies enabled. The-node-<platform>.tgzarchives are self-contained alternatives.- HTTP/profile/export v1, WAL 1 and snapshot format 3 remain unchanged. Readers retain formats 1/2. Published 0.5.0 and 1.0.0 read each other's format-3 writes; upgrades and exports from 0.3.0/0.4.0 are also checked.
- Stop writers and back up a matched snapshot/WAL pair, or checkpoint before copying a standalone snapshot. Existing format-2 files stay at 2 until an explicit upgrade creates a backup. Workspace 1.0.0 cannot open format 3.
- The database, graph and cached pages must fit in RAM. Open/checkpoint still process a full image. This is a single-node release without replication or high availability. Tests inject process crashes and I/O failures, not physical power loss; an equivalent Unix directory-sync guarantee is not claimed for Windows.
- Historical benchmarks retain their original 0.5.0-dev.1 provenance and are not new measurements of 1.0.0.
Packages and upgrade guide · Documentation
The attached PROVENANCE.json records the source commits and CI runs. Rust and Node packages retain their verified publication artifacts; the final tag additionally contains a Python timeout-test correction, with no runtime changes. SHA256SUMS covers all other release assets.
Recern Vector 0.5.0
Recern Vector 0.5.0 adds incremental persistence and a validated page directory.
New databases use snapshot format 3. Format-2 files retain their layout until an explicit upgrade; the upgrade creates a standalone format-2 backup. Readers retain formats 1/2, WAL 1, HTTP/profile v1 and migration v1.
- Encode changed records and HNSW neighbors instead of a full database image.
- Reuse free pages and update per-page checksums and the checksum-tree root.
- Schedule checkpoints at 64 MiB of WAL or 1,000 commits, with per-handle/server configuration and observable maintenance errors.
- Expose upgrade, format and persistence-work APIs in Rust, Python and Node.
- Publish @recern/vector with exact-version native packages selected by OS/CPU/libc.
- Verify native builds, installed Python wheels/sdist, Rust packages, npm tarballs, old readers, Qdrant and cross-language migration.
Compatibility: Workspace 1.0.0 uses the Vector 0.2.0 reader and cannot open format 3. Keep its files at format 2 until a Workspace reader update.
Performance evidence: 54 release-build persistence cases and full SIFT1M/GloVe f32/int8 sweeps were measured on the retained 0.5.0-dev.1 engine. Raw versions/source hashes are preserved. Full-image peak RSS reached 15.21 GiB; automatic scheduling was disabled in timed saves. Int8 reduces vector payload but is not a query-speed or whole-process memory guarantee.
Install:
pip install recern-vector==0.5.0
cargo add recern-vector@0.5.0
npm install @recern/vector@0.5.0
Release docs: https://recern.net/vector/docs/release
Persistence: https://recern.net/vector/docs/persistence-0.5
Benchmarks: https://recern.net/vector/benchmarks
Recern Vector 0.4.0
-
Release HTTP API v1 in
api/openapi.jsonanddocs/http-api.md, mapping
portable profile v1 to versioned operations, authentication, typed errors,
request limits, durable acknowledgements, collection generations and snapshot
leases. Keep.rvecand migration formats unchanged. -
Add wire request/response fixtures and private Python codecs preserving
arbitrary IDs, uint64 values and structural integer/float metadata. Reject
duplicate JSON keys, invalid Unicode, non-finite values and malformed errors. -
Add a separate Rust
recern-vector-serverpackage (0.4.0) with bearer
authentication, loopback listeners, bounded HTTP/1.1 requests and workers,
durable serialized writes, generation checks and snapshot leases. Catalog and
data changes share one native WAL commit; stale handles cannot access a
replacement generation. -
Add durable sequence access and borrowed search-result visitation to the
engine, allowing bounded server responses without cloning all hit metadata.
Keep the existing native search behavior and frozen format/export fixtures. -
Test real HTTP operations, shared filters, int8, concurrent clients, request
caps, torn WAL recovery and restart/lost acknowledgements; inject commit and
deadline/shutdown boundaries. Configure server HTTP CI on Linux/macOS/Windows. -
Gate CI and installed-wheel checks on OpenAPI/schema validation and shared
portable fixtures, packaged crates, installed wheels, sdist builds, release
binaries and Node tarballs before publication. -
Add the Python
Client.remotebackend, generation-bound handles, verified TLS,
total HTTP deadlines, typed errors and explicit snapshot lease cleanup. Extend
resumable migration to/from the server, including lost creation acknowledgements. -
Add a separate portable Rust client and asynchronous Node
./portableentry
point for embedded Recern, Recern HTTP and Qdrant. Share validators/adapters
between Rust/Node; preserve uint64 and structural numeric kinds using JSON text. -
Run the frozen profile across three languages/backends; verify cross-language
data, migration, private-CA TLS and packed Node contents. Keep native APIs and
format/export compatibility fixtures unchanged. -
Publish the Rust engine, CLI, portable client and HTTP server, Python wheels
and sdist, and verified native CLI/server and Node archives for Linux x64/ARM64,
macOS Intel/Apple silicon and Windows x64. Document upgrade/backup behavior;
retain file formats 1/2 and portable migration format 1.
Install and upgrade: https://recern.net/vector/docs/release
Native CLI/server archives and Node npm tarballs cover Linux x64/ARM64, macOS Intel/Apple silicon and Windows x64. Public npm registry distribution is planned for 0.5.0. See SHA256SUMS for all assets.
Recern Vector 0.3.0
Recern Vector 0.3.0 adds a portable Python API for moving an application from an embedded prototype to Qdrant while preserving logical IDs, JSON metadata, and defined filter and distance semantics.
New in 0.3.0
recern_vector.portableprofile v1 with embedded Recern and Qdrant 1.19.2 backends, capability discovery, explicit errors, and shared compatibility fixtures.- Consistent embedded snapshot exports with a versioned manifest, JSONL records and checksums. Imports into new embedded or Qdrant collections support dry-run, interruption recovery, and read-back verification.
- Bounded record pages and database identity in the native Rust and Python APIs. Existing native Python, Rust, Node.js, and CLI APIs remain available.
- Stable file format 2 remains unchanged; format-1 snapshots remain readable.
Install
pip install --upgrade recern-vector==0.3.0
cargo add recern-vector@0.3.0
cargo install recern-vector-cli --version 0.3.0 --lockedPython wheels cover Linux x64/arm64, macOS x64/arm64, and Windows x64, with CPython 3.11 or later. Native Node.js packages for Linux x64, macOS arm64 and Windows x64 are attached below, along with SHA-256 checksums; an npm package is not published yet. See the Node.js setup guide.
Compatibility and scope
The portable API is available in Python in this release. A separate Recern server and portable Rust/Node.js clients are planned for 0.4.0. Qdrant batches are not guaranteed atomic, and consistent exports from Qdrant are unsupported. Int8 migration transfers the stored, dequantized vectors into f32 collections. Published benchmark numbers predate this release and do not measure the Qdrant adapter.
Portable API · Migration guide · Changelog
Validation
The CI matrix and release wheel matrix passed, including installed wheels on Python 3.11/3.13 and the authenticated Qdrant contract. Python distributions were built at a275cbb; the follow-up commits only correct Windows test-fixture encoding and line endings. Runtime sources are identical to the v0.3.0 tag.
Recern Vector 0.2.0
Recern Vector 0.2.0 adds durable incremental disk writes and a stable file-format contract for embedded vector databases.
- Format 2: versioned snapshots with frozen compatibility fixtures. Existing format-1 databases remain readable and migrate on their first writable save or checkpoint.
- WAL: checksummed changed-page commits, torn-tail recovery, atomic checkpoints and stale-writer protection across handles and processes.
- Int8: optional per-collection quantization with direct distance calculations on stored codes. Original f32 vectors are not retained.
- Filtered search: nested
$and,$orand$not, cost-based exact/HNSW planning and adaptive candidate budgets. - Node.js: native Node-API bindings with Float32Array input and asynchronous search, alongside the Rust, Python and CLI APIs. Bindings are available from source and in the platform archives attached below (Linux x64, macOS arm64, Windows x64). An npm registry package is not published in this release.
save() now commits to WAL. Before copying a standalone .rvec, stop concurrent writers and call checkpoint() (or recern-vector checkpoint FILE). Keep the WAL with an active database. Format-2 files cannot be opened by older releases.
Incremental disk writes are implemented; encoding and comparison still process a full in-memory image. Checkpoint periodically to bound journal size. Historical benchmarks describe the earlier f32 engine and have not been rerun for int8.
See the file-format and durability contract and current limitations.
Recern Vector 0.0.2
A bug-fix release of Recern Vector, plus documentation and examples.
Prototype. The file format and API will change between 0.0.x releases. Version 0.1 is reserved for a stable, versioned file format. Files written by 0.0.1 open in 0.0.2 unchanged.
Install
pip install -U recern-vector # Python (CPython 3.11+)
cargo add recern-vector@0.0.2 # Rust library
cargo install recern-vector-cli # the recern-vector command| Package | Registry |
|---|---|
recern-vector (Python) |
PyPI: wheels for Linux x86_64 and aarch64, macOS Intel and Apple silicon, Windows x64, plus sdist |
recern-vector (Rust) |
crates.io |
recern-vector-cli |
crates.io |
Fixes
- Python: writing while other threads search. In 0.0.1, a write from one thread while another thread was searching raised
PyBorrowMutError, aBaseExceptionthatexcept Exceptiondoes not catch. The database now sits behind a read-write lock taken with the GIL released: searches run in parallel and writes wait for them. - Cosine distance below zero. Rounding could report the distance between identical vectors as slightly negative. Reported distances are now clamped at 0.
Documentation and examples
- Guides in
docs/, also at https://recern.net/vector/docs: getting started, concepts, Python, Rust, CLI, filters, inspection, file format and limitations. - Runnable
examples/: Python quickstart, semantic search, RAG retrieval, inspecting and tuning recall; a Rust quickstart; a CLI walkthrough. CI runs the CLI example on every push.
Known limitations
Unchanged from 0.0.1: the whole database is held in memory and save() rewrites the entire file (no WAL yet); single writer; f32 vectors only; no Node.js bindings yet.
Full changelog: v0.0.1...v0.0.2
Recern Vector 0.0.1
The first public release of Recern Vector: a single-file, embedded vector database whose internals you can inspect. It runs inside your process, keeps everything in one file and can explain how every search ran.
Prototype. The file format and API will change between 0.0.x releases. Version 0.1 is reserved for a stable, versioned file format.
Install
pip install recern-vector # Python (CPython 3.11+)
cargo add recern-vector # Rust library
cargo install recern-vector-cli # the recern-vector command| Package | Registry |
|---|---|
recern-vector (Python) |
PyPI: wheels for Linux x86_64 and aarch64, macOS Intel and Apple silicon, Windows x64, plus sdist |
recern-vector (Rust) |
crates.io |
recern-vector-cli |
crates.io |
What's in 0.0.1
- Search: HNSW index with per-collection
m,ef_constructionandef_search, plus exact search. Cosine, L2 and dot product. - Metadata filters: MongoDB-style equality,
$inand ranges, with dotted paths. Very selective filters switch to an exact scan automatically. - Writes: upsert and delete by id,
compact.upsert_manybuilds the index on all cores and is atomic: if one vector is invalid, nothing is written. - Introspection:
stats()(graph layers, degree, unreachable records, memory),explain()(strategy, visited nodes, filter selectivity, time) andestimate_recall()against exact search. - Storage: one file with a CRC32 check, saved atomically (temp file, fsync, rename).
- Python bindings: one abi3 wheel per platform, type hints, float32 NumPy arrays read without per-element conversion, GIL released during search, batch inserts and saving.
- CLI:
init,create-collection,insert,delete,query --explain,inspect,recallandcompact.
Benchmarks
On SIFT1M and GloVe-100 from ANN-Benchmarks, one query at a time from Python on an Apple M3 Max, Recern Vector serves 1.30× (SIFT1M) and 1.78× (GloVe-100) the queries per second of faiss HNSW at recall@10 ≥ 0.95. It builds a million-vector index in 35 s on 14 cores, within 1.1–1.2× of faiss.
Full report with method and limitations: https://recern.net/vector/benchmarks. Harness: bench/.
Known limitations
- The whole database is held in memory, and
save()rewrites the entire file (no WAL yet). - Single writer. Single upserts link sequentially; use
upsert_manyfor bulk loads. f32vectors only; no quantization yet.- No Node.js bindings yet.
License
MIT OR Apache-2.0, at your option.
Project page: https://recern.net/vector