LangChain adapter for VantaDB — embedded vector memory for AI agents
pip install vantadb-langchain==0.9.0 Copy PIP instructions
Not on PyPI yet. The vantadb-langchain package builds and passes twine check locally; it will go live with the first adapters-v* tag release. Until then, install from source.
# Today, from a repo checkout cd integrations/langchain && pip install . Install from PyPI (after first release) pip install vantadb-langchain Quickstart from langchain_openai import OpenAIEmbeddings from vantadb_langchain import VantaDBVectorStore embedding = OpenAIEmbeddings(model="text-embedding-3-small") store = VantaDBVectorStore( embedding=embedding, db_path="./my_data", namespace="docs", ) # Add documents store.add_texts( ["VantaDB is an embedded vector database written in Rust.", "It supports hybrid search across vectors and text."], metadatas=[{"source": "docs"}, {"source": "docs"}], ) # Search results = store.similarity_search("vector database", k=5) for doc in results: print(doc.page_content, doc.metadata) API similarity_search(query, k=4) — search by text similarity_search_by_vector(embedding, k=4) — search by raw vector similarity_search_with_score(query, k=4) — search with cosine distance add_texts(texts, metadatas=None, ids=None) — add documents delete(ids=...) — delete by key from_texts(texts, embedding, metadatas=None, ids=None) — create + populate store LangGraph (INTG-01) Persistent LangGraph adapters — same embedded database, no server. Requires langgraph-checkpoint>=2,<5 (pinned major: upstream API is unstable).
from vantadb_langchain import VantaDBCheckpointer, VantaDBStore # Short-term memory: per-thread checkpoints (put/get/list/writes/delete) checkpointer = VantaDBCheckpointer(db_path="./my_data") graph = builder.compile(checkpointer=checkpointer) graph.invoke(inputs, {"configurable": {"thread_id": "user-1"}}) # Long-term memory: hierarchical KV store, namespaces are tuples store = VantaDBStore(db_path="./my_data", embeddings=embedding) await store.aput(("users", "123", "prefs"), "theme", {"mode": "dark"}) item = await store.aget(("users", "123", "prefs"), "theme") results = await store.asearch(("users", "123"), query="dark mode") Notes:
pip install -e . Project links Documentation Homepage Repository Key dates PyPI data Data sourced directly from PyPI's database. Released: Oct 20, 2026 Latest release 1 maintainer PyPI data Data sourced directly from PyPI's database. DevpNess Credits Author: VantaDB Team
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
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.
None of the files in this release were uploaded with provenance metadata.
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.




