VantaDB × LlamaIndex
LlamaIndex BasePydanticVectorStore adapter for VantaDB.
Install
Not on PyPI yet. The
vantadb-llamaindexpackage 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/llamaindex && pip install .
Install from PyPI (after first release)
pip install vantadb-llamaindex
Quickstart
from llama_index.core import VectorStoreIndex, SimpleDirectoryReader
from llama_index.embeddings.openai import OpenAIEmbedding
from vantadb_llamaindex import VantaDBVectorStore
# Create vector store
vector_store = VantaDBVectorStore(
db_path="./my_data",
namespace="docs",
)
# Create index from documents
documents = SimpleDirectoryReader("./data").load_data()
embed_model = OpenAIEmbedding(model="text-embedding-3-small")
index = VectorStoreIndex.from_documents(
documents,
embed_model=embed_model,
vector_store=vector_store,
)
# Query
query_engine = index.as_query_engine()
response = query_engine.query("What is VantaDB?")
print(response)
API
add(nodes)— add pre-embedded nodes to the storedelete(ref_doc_id)— delete all nodes from a documentquery(query)— vector + hybrid searchget_nodes(node_ids)— retrieve nodes by IDclear()— remove all records
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,
where LlamaIndex's
SimpleVectorStorecovers only small single-process sessions. - 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-llamaindex 0.5.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 | |
|---|---|---|---|
| vantadb_llamaindex-0.5.0.tar.gz | 8.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| vantadb_llamaindex-0.5.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 15.1 kB
Release files / vantadb_llamaindex-0.5.0.tar.gz
| Download URL | vantadb_llamaindex-0.5.0.tar.gz |
|---|---|
| Size | 8.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ab14c26ea40d200f155e126236a6780a9ae037ad97fb49dbb9dcac82572cc226
|
|
BLAKE2b-256 checksum How to use checksums |
77ef75f3e9215b24adc7bf147e32edd4ac447d95c1e9773f9d633721031f5ab5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.7
|
Release files / vantadb_llamaindex-0.5.0-py3-none-any.whl
| Download URL | vantadb_llamaindex-0.5.0-py3-none-any.whl |
|---|---|
| Size | 6.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f9437f95a8ca510d322e42128a9f5e3a51dd9baf5c8cbb2c747e807aebeac7b5
|
|
BLAKE2b-256 checksum How to use checksums |
590cefdc8d5e3aec56e81ad0f3b85cb8ae576185e5ebe59309bef8a44e5e7c61
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.7
|