Recern Vector DB · 1.0.0

A vector database in a single file.

Recern Vector 1.0.0 brings a stable public API and tested crash recovery to an inspectable vector database. Run embedded or through its single-node HTTP server, with Python, Rust and Node.js clients.

pip install recern-vectornpm install @recern/vectorRelease notes, v1.0.0
Rust · Python · Node.js · CLI · MIT OR Apache-2.0

Recern Workspace · demo database · format 2

Recern Workspace showing measured recall and latency curves for the payment_patterns int8 demo collection.

Measure recall and latency at different ef values on the payment_patterns int8 collection.

Recern Workspace · demo database · format 2 · Recall

Measure recall and latency at different ef values on the payment_patterns int8 collection.

Historical 0.5.0-dev.1 measurements, not new 1.0.0 results. Warm-cache native saves with automatic scheduling disabled; 100,000 synthetic f32 records. These save latencies are not HTTP serving guarantees.

5.231ms

p50 · replacement save

4.905ms

p50 · delete save

0.088ms

p50 · clean save

Why Recern Vector

Small enough to embed. Open enough to understand.

01

A portable snapshot

Changes are committed to a checksummed WAL. Call checkpoint() before copying the .rvec snapshot on its own, with writes paused; otherwise preserve the matching snapshot and WAL together.

02

Embedded or HTTP

Run inside your application or use the authenticated single-node HTTP server. Portable clients keep the same data operations across embedded Recern, Recern HTTP and Qdrant.

03

Nothing hidden

Any search can report its strategy, the nodes it visited, how selective the filter was and how long it took. Stats show the graph layers, memory use and any records a search cannot reach, and recall can be measured on your own data.

How it looks

Search, then ask how the search ran

The same database from Python and from the command line. The output on the right is a real run on 20,000 records with a metadata filter.

import recern_vector as rv

db = rv.Database.open_or_create("docs.rvec")
docs = db.create_collection("docs", dim=384, metric="cosine")
docs.upsert_many(ids, embeddings, metadatas)

hits = docs.search(query, k=5, filter={"lang": "en"})
docs.explain(query, k=5)  # strategy, visited nodes, time
$ recern-vector query docs.rvec docs --like doc-42 -k 3 \
    --filter '{"lang": "en", "year": {"$gte": 2020}}' \
    --explain

  #  id          distance  metadata
  1  doc-42      -0.00000  {"lang":"en","year":2024}
  2  doc-18861    0.63155  {"lang":"en","year":2022}
  3  doc-10899    0.63834  {"lang":"en","year":2024}

  strategy      hnsw
  ef            64
  selectivity   ~19.9% of records match the filter
  visited       7,244 nodes
  distances     7,330 computed
  time          529 µs

Python bindings take NumPy float32 arrays without converting each element. Batch inserts build the index on all cores.

In 1.0.0

What already works

  • Stable APIs, tested recovery

    The 1.x compatibility and deprecation policy covers documented Rust, Python, Node.js, HTTP and CLI interfaces. Cross-version tests cover released clients, servers, files and migration.

  • Incremental record encoding

    Format 3 encodes changed records and HNSW neighbours into stable pages. Open and checkpoint still process a full image; cached pages and padding add memory and storage costs.

  • Portable Python, Rust and Node APIs

    Use the same collection, record and filtered-search operations on embedded Recern, Recern HTTP and Qdrant. Profile v1 preserves logical IDs, metadata precision, distance semantics and explicit backend capabilities.

  • Verified migration

    Export a consistent snapshot from embedded Recern or Recern HTTP and import into new Recern or Qdrant collections. Includes checksums, dry-run, resume and read-back verification. Int8 exports contain stored, dequantized vectors.

  • HNSW and exact search

    A graph index with per-collection m, ef_construction and ef_search, and an exact scan when you need ground truth.

  • Cosine, L2 and dot product

    Each collection has a fixed dimension and metric. Cosine vectors are normalized when they are stored.

  • Metadata filters

    Equality, $in, ranges and nested $and, $or and $not. A cost planner samples filter selectivity, chooses exact or HNSW search and adapts the search effort.

  • Atomic embedded inserts

    Embedded Recern builds batch indexes on all cores and rejects an invalid batch before writing. Qdrant batches do not carry an atomicity guarantee.

  • Upsert, delete and compact

    Replace or delete records by id, then compact to rebuild the collection without deleted records.

  • Introspection API

    stats(), explain() and estimate_recall() are part of the API, not a separate tool.

  • Python bindings

    A PyO3 wheel for CPython 3.11 and later, with type hints.

  • Command-line tool

    init, create-collection, insert, query, inspect, recall, checkpoint and compact.

  • Paged format 3, legacy readers

    New files use format 3. Readers retain formats 1/2; existing format-2 files stay at 2 until an explicit upgrade creates a standalone format-2 backup.

  • Automatic WAL checkpoints

    By default, writable handles attempt a checkpoint at 64 MiB of WAL or 1,000 commits. A maintenance failure is reported without undoing a synced WAL commit; thresholds are configurable.

  • Optional int8

    Per-collection int8 codes with per-vector scales. Measure recall on your data to choose the storage and accuracy tradeoff.

  • Node.js on npm

    Install @recern/vector. Exact-version native dependencies select Linux x64/ARM64 (glibc), macOS Intel/Apple silicon or Windows x64. Keep optional dependencies enabled.

Benchmarks

Persistence and precision, measured

Apple M3 Max · 36 GiB · 2026-11-04

Historical 0.5.0-dev.1 measurements, not new 1.0.0 results. Warm-cache native saves with automatic scheduling disabled; 100,000 synthetic f32 records. These save latencies are not HTTP serving guarantees.

Configurationreplacement save · msdelete save · msclean save · ms
Recern 0.4.0format 2 · 100,000 f321,092.946p501,409.96p501,209.893p50
Recern 0.5.0.dev1format 2 · 100,000 f321,072.921p501,403.322p501,242.448p50
Recern 0.5.0.dev1format 3 · 100,000 f325.231p504.905p500.088p50
Read the full report
Status

Recern Vector 1.0.0

  1. Available

    1.0.0

    • Stable APIs, tested recovery
    • Incremental record encoding
    • Automatic WAL checkpoints
    • Node.js on npm
    • Single-node HTTP server with authentication and durable writes
    • Python, Rust and Node: embedded Recern, Recern HTTP and Qdrant
    Release packages and compatibility
  2. Available

    1.x

    • Stable API and deprecation policy
    • Upgrade, backup and migration suites
    • Operational limits and compatibility matrix
    Stable APIs, tested recovery

The database, index and encoded pages must fit in RAM. Open/checkpoint process a full image; format-2 saves still encode a full image. Int8 does not guarantee faster searches or lower total peak RSS. HTTP/profile/export v1 remain unchanged; clustering and high availability are outside this release.

Recern workspace

Part of a bigger picture

Workspace 1.0.1 opens formats 1/2/3 read-only, including committed WAL changes. Update Workspace 1.0.0 to inspect format-3 files; no database conversion is needed.

Explore the workspace