Skip to main content

VecStore Python Bindings

High-performance vector database with RAG toolkit for Python, powered by Rust.

Installation

pip install vecstore

Quick Start

from vecstore import VecStore, Query

# Create or open a vector store
store = VecStore.open("./my_db")

# Insert vectors with metadata
store.upsert(
    id="doc1",
    vector=[0.1, 0.2, 0.3, ...],
    metadata={"text": "Hello world", "category": "greeting"}
)

# Query for similar vectors
results = store.query(
    vector=[0.1, 0.2, 0.3, ...],
    k=5
)

for result in results:
    print(f"ID: {result.id}, Score: {result.score}")
    print(f"Metadata: {result.metadata}")

Features

  • Fast: 10-100x faster than pure Python implementations
  • Complete RAG Toolkit: Text splitting, reranking, evaluation
  • Production Ready: Persistence, namespaces, server mode
  • Pythonic API: Type hints, familiar patterns
  • Zero Config: Works out of the box

Documentation

See the main repository documentation:

Examples

See the examples/ directory for complete examples:

  • basic_rag.py - Simple RAG workflow
  • fastapi_integration.py - FastAPI REST API
  • evaluation.py - RAG quality measurement
  • production.py - Production deployment

Development

Building from source:

# Install maturin
pip install maturin

# Build in development mode
maturin develop --features python

# Run tests
pytest tests/

License

MIT License - see LICENSE file for details

Metadata

Release files for vecstore-rs 1.0.0

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

Source distribution (sdist)

Source distribution for vecstore-rs 1.0.0
File Size Uploaded Provenance Actions
vecstore_rs-1.0.0.tar.gz 694.0 kB Without provenance Details for vecstore_rs-1.0.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for vecstore-rs 1.0.0
File Interpreter ABI Platform Actions
vecstore_rs-1.0.0-cp313-cp313-macosx_11_0_arm64.whl CPython 3.13 CPython 3.13 macOS 11.0+ ARM64 Details for vecstore_rs-1.0.0-cp313-cp313-macosx_11_0_arm64.whl

Total release size: 2.2 MB

Release files / vecstore_rs-1.0.0.tar.gz

Download URL vecstore_rs-1.0.0.tar.gz
Size 694.0 kB
Tags Source
SHA-256 checksum
How to use checksums
8931b7d50d0c7abdf7ab82c963ba7b4107697aa9b020ae606e3e0a7ac5308238
BLAKE2b-256 checksum
How to use checksums
3526096e3e177d6aa599230195ed904e217e436836ecc1e01f37c1d9825ec2eb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/1.9.6

Release files / vecstore_rs-1.0.0-cp313-cp313-macosx_11_0_arm64.whl

Download URL vecstore_rs-1.0.0-cp313-cp313-macosx_11_0_arm64.whl
Size 1.5 MB
Tags CPython 3.13 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
df1161f9a83ae4e94b81de950693f3b98a3de6e7013264845fdda25ab0c731cc
BLAKE2b-256 checksum
How to use checksums
26c669a778fc0ceb8ac90a92e6607fa05acbcafab3dc45849f43239e48f58be7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/1.9.6

Security for vecstore-rs 1.0.0

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

1.0.0 This release

2 release files No provenance

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