VantaDB × DSPy
DSPy Retriever adapter for VantaDB.
Install
Not on PyPI yet. The
vantadb-dspypackage builds and passestwine checklocally; it will go live with the firstadapters-v*tag release. Until then, install from source.
# Today, from a repo checkout
cd integrations/dspy && pip install .
Install from PyPI (after first release)
pip install vantadb-dspy
Quickstart
import dspy
from vantadb_dspy import VantaDBRetriever
retriever = VantaDBRetriever(
db_path="./my_data",
namespace="docs",
k=5,
)
# Use in DSPy program
class RAG(dspy.Module):
def __init__(self):
self.retrieve = retriever
def forward(self, question):
context = self.retrieve(question)
return context
API
VantaDBRetriever(db_path, namespace, k)— DSPy-compatible retrieverforward(query)— search and return passages
Why VantaDB?
- Embedded & local-first: the storage engine is a Rust library embedded in your process — no server to deploy, no network hop; data lives in your filesystem.
- Persistent hybrid search: vectors + BM25 text search out of the box; DSPy has no built-in memory, so VantaDB adds retrievable context across program runs.
- Zero-setup alternative to hosted stacks: unlike Zep (requires a server) or Cognee (spins up its own knowledge-graph runtime), VantaDB is a plain library you import.
Development
pip install -e .
Metadata
Release files for vantadb-dspy 0.9.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| vantadb_dspy-0.9.0.tar.gz | 5.1 kB | Without provenance | Details for vantadb_dspy-0.9.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| vantadb_dspy-0.9.0-py3-none-any.whl | Python 3 | none | any | Details for vantadb_dspy-0.9.0-py3-none-any.whl |
Total release size: 9.9 kB
Release files / vantadb_dspy-0.9.0.tar.gz
| Download URL | vantadb_dspy-0.9.0.tar.gz |
|---|---|
| Size | 5.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
43f743e18be6970ec6686abea586518fa5be99f7d11a7d00b481dd3948c6ca56
|
|
BLAKE2b-256 checksum How to use checksums |
838064a0567ad3789c7180502c67380309fc4d8e5946b4568584c8b19e87828d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Release files / vantadb_dspy-0.9.0-py3-none-any.whl
| Download URL | vantadb_dspy-0.9.0-py3-none-any.whl |
|---|---|
| Size | 4.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
1f173c48558bd72f847005cf7503265b88d03a607458639a249e1e7a16bade1f
|
|
BLAKE2b-256 checksum How to use checksums |
1c22082f960733b14458c00c338c567379eec3c706dd7ec84219a1b8f79905a0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Security for vantadb-dspy 0.9.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.