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

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

vecstore_rs-1.0.0.tar.gz (694.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

vecstore_rs-1.0.0-cp313-cp313-macosx_11_0_arm64.whl (1.5 MB view details)

Uploaded CPython 3.13macOS 11.0+ ARM64

File details

Details for the file vecstore_rs-1.0.0.tar.gz.

File metadata

  • Download URL: vecstore_rs-1.0.0.tar.gz
  • Upload date:
  • Size: 694.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: maturin/1.9.6

File hashes

Hashes for vecstore_rs-1.0.0.tar.gz
Algorithm Hash digest
SHA256 8931b7d50d0c7abdf7ab82c963ba7b4107697aa9b020ae606e3e0a7ac5308238
MD5 fa4aba701b9b818cf50a9f94abe5cb9d
BLAKE2b-256 3526096e3e177d6aa599230195ed904e217e436836ecc1e01f37c1d9825ec2eb

See more details on using hashes here.

File details

Details for the file vecstore_rs-1.0.0-cp313-cp313-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for vecstore_rs-1.0.0-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 df1161f9a83ae4e94b81de950693f3b98a3de6e7013264845fdda25ab0c731cc
MD5 c6c9031321ec427001f79337787c84e9
BLAKE2b-256 26c669a778fc0ceb8ac90a92e6607fa05acbcafab3dc45849f43239e48f58be7

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

1.0.0 This release

2 files

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page