Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

vectorstores

Utilities for pushing vectors and metadata into a Weaviate instance. The package ships a WeaviateVectorStore implementation plus a simple VectorStore interface you can build on.

Installation

pip install vectorstores

Quickstart

import weaviate
from vectorstores import WeaviateVectorStore

# create a client (configure URL/auth to match your deployment)
client = weaviate.connect_to_local()  # or weaviate.connect_to_wcs(...)

store = WeaviateVectorStore(
    client=client,
    index_name="MyIndex",
    text_key="text",
)

# add data (stores text plus optional metadata; vectors can be provided explicitly)
ids = store.add_vector(
    vectors=["Hello world", "Another sample"],
    metadatas=[{"topic": "greeting"}, {"topic": "example"}],
)
print(ids)

# delete by id
store.delete(ids=[ids[0]])

Notes

  • If you want multi-tenancy, pass use_multi_tenancy=True when constructing the store and provide tenant=... to write/delete calls.
  • If you already have embeddings and want to bypass internal embedding, pass them via vectors and supply matching metadatas/ids.

Development

Create a virtual environment and install dependencies with tests:

python3 -m venv .venv
source .venv/bin/activate
pip install -e .[tests]

Run checks:

ruff check .
mypy .
pytest

Building and uploading to PyPI

  1. Clean old artifacts (optional but recommended):
rm -rf dist build *.egg-info
  1. Build the wheel and sdist:
python -m build
  1. Upload to PyPI with Twine:
twine upload dist/*

Make sure your PyPI credentials are configured (e.g., via ~/.pypirc or environment variables) before running the upload.

Metadata

Release files for vectorstores 0.1.2.dev50

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

Source distribution (sdist)

Source distribution for vectorstores 0.1.2.dev50
File Size Uploaded
vectorstores-0.1.2.dev50.tar.gz 14.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for vectorstores 0.1.2.dev50
File Interpreter ABI Platform
vectorstores-0.1.2.dev50-py3-none-any.whl Python 3 none any Details

Total release size: 22.7 kB

Release files / vectorstores-0.1.2.dev50.tar.gz

Download URL vectorstores-0.1.2.dev50.tar.gz
Size 14.1 kB
Tags Source
SHA-256 checksum
How to use checksums
b42f5c43630a8ea616ae81447c8f8d47678d8ea3e1e72269843070dbac3ed533
BLAKE2b-256 checksum
How to use checksums
91e049b9e662ad0766b20533bc46490b784948b21bae1429c1a168b3e4d4cea6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.7

Release files / vectorstores-0.1.2.dev50-py3-none-any.whl

Download URL vectorstores-0.1.2.dev50-py3-none-any.whl
Size 8.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1fee4fa7700b832e2bd7075fc707c6c29c47d4e35f51292e6f6e180d2ceb2e2e
BLAKE2b-256 checksum
How to use checksums
8ff343c5ca1da702218c99724bcc1f9c9660bd612ef64407c3d848d67648c2b7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.7
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