Skip to main content

recern-vector (Python)

Python bindings for Recern Vector, a single-file, embedded, inspectable vector database.

Prototype (0.0.x): the file format and API will change between releases.

pip install recern-vector

Wheels cover CPython 3.11+ on Linux (x86_64, aarch64), macOS (Intel, Apple silicon) and Windows (x86_64).

import numpy as np
import recern_vector as rv

with rv.Database.open_or_create("docs.rvec") as db:          # saves on clean exit
    chunks = db.create_collection("chunks", dim=384, metric="cosine")
    chunks.upsert_many(ids, np.asarray(embeddings, dtype=np.float32), metadatas)

    hits = chunks.search(query, k=5, filter={"lang": "en", "year": {"$gte": 2020}})
    report = chunks.explain(query, k=5)          # strategy, visited nodes, elapsed_ms
    recall = chunks.estimate_recall(ef_values=[16, 64, 256])
    print(chunks.stats())

float32 NumPy arrays are read through the buffer protocol without per-element conversion; plain lists and other dtypes also work. upsert_many builds index links on all cores (threads= to change it) and is atomic: if any vector is invalid, nothing is written.

Benchmarks against faiss, LanceDB and sqlite-vec: recern.net/vector/benchmarks.

Development

uv venv && uv pip install maturin pytest numpy
source .venv/bin/activate
maturin develop --release
pytest

Metadata

Release files for recern-vector 0.0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for recern-vector 0.0.2
File Size Uploaded
recern_vector-0.0.2.tar.gz 55.1 kB Details

Built distributions (wheels)

Table of built distributions (wheels) for recern-vector 0.0.2
File
recern_vector-0.0.2-cp311-abi3-win_amd64.whl CPython 3.11 abi3 Windows x86-64 Details
recern_vector-0.0.2-cp311-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl CPython 3.11 abi3 Linux glibc 2.17+ x86-64 Details
recern_vector-0.0.2-cp311-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl CPython 3.11 abi3 Linux glibc 2.17+ ARM64 Details
recern_vector-0.0.2-cp311-abi3-macosx_11_0_arm64.whl CPython 3.11 abi3 macOS 11.0+ ARM64 Details
recern_vector-0.0.2-cp311-abi3-macosx_10_12_x86_64.whl CPython 3.11 abi3 macOS 10.12+ x86-64 Details

Total release size: 2.2 MB

Release files / recern_vector-0.0.2.tar.gz

Download URL recern_vector-0.0.2.tar.gz
Size 55.1 kB
Tags Source
SHA-256 checksum
How to use checksums
7608f4276c91030fbee77048d3633108f06f00076aa4e6f3c2671ce02173ab4c
BLAKE2b-256 checksum
How to use checksums
2fde1db3c23466a496011268449f5e7c0eb4f05da3cc4f5c098632025ab23419
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 9, 2026.

Transparency log

Release files / recern_vector-0.0.2-cp311-abi3-win_amd64.whl

Download URL recern_vector-0.0.2-cp311-abi3-win_amd64.whl
Size 345.6 kB
Tags CPython 3.11 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
5f3ec266660f68cdcf19e28ea30afa6190c8cd126be1a18af8524dc16f3208d8
BLAKE2b-256 checksum
How to use checksums
279133bd6308be0edd945a28db6e7004e6e3745f52e73aadd6357fbb38ce5a14
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 9, 2026.

Transparency log

Release files / recern_vector-0.0.2-cp311-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL recern_vector-0.0.2-cp311-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 480.8 kB
Tags CPython 3.11 Linux glibc 2.17+ x86-64 abi3
SHA-256 checksum
How to use checksums
2c1e02f1eb4fc9fc74e033190a825271ded37ff4670c4fa5ab773ba81cc2a99b
BLAKE2b-256 checksum
How to use checksums
7222292807ebf6d573ece12e8d21a6b4e169045822fdb4640a5914fe5be183d3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 9, 2026.

Transparency log

Release files / recern_vector-0.0.2-cp311-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl

Download URL recern_vector-0.0.2-cp311-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Size 462.8 kB
Tags CPython 3.11 Linux glibc 2.17+ ARM64 abi3
SHA-256 checksum
How to use checksums
977f154101c28fb9518d2a794940a079d5344e84f395fe24296084bfafc4a4fc
BLAKE2b-256 checksum
How to use checksums
18fd2b197dba842f868aebdee03359f0a4c7bf30fd81b33b58f71a02474143f5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 9, 2026.

Transparency log

Release files / recern_vector-0.0.2-cp311-abi3-macosx_11_0_arm64.whl

Download URL recern_vector-0.0.2-cp311-abi3-macosx_11_0_arm64.whl
Size 421.4 kB
Tags CPython 3.11 abi3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
f50d609bbf5b1bdd422680d93e3ebbff5aa347e77cbbdb01bd48ebb732f05ef1
BLAKE2b-256 checksum
How to use checksums
efd25bdec8046454b300556b01820c5c4ec98ebf103329969819c3a1bdaff926
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 9, 2026.

Transparency log

Release files / recern_vector-0.0.2-cp311-abi3-macosx_10_12_x86_64.whl

Download URL recern_vector-0.0.2-cp311-abi3-macosx_10_12_x86_64.whl
Size 439.1 kB
Tags CPython 3.11 abi3 macOS 10.12+ x86-64
SHA-256 checksum
How to use checksums
97b1a9c3167bf6750f14f46379b96add4ea4448cab6bc6584c39d3505e3de8a5
BLAKE2b-256 checksum
How to use checksums
315418f051c88ce992b08f3e7cedf49d02a900357c94c3319285ae2ffd3f56de
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 9, 2026.

Transparency log

Release history Release notifications | RSS feed

0.3.0

6 release files

0.2.0

6 release files

This release

0.0.2 This release

6 release files

0.0.1

6 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page