Skip to main content

VantaDB × LlamaIndex

LlamaIndex BasePydanticVectorStore adapter for VantaDB.

Install

Not on PyPI yet. The vantadb-llamaindex 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/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 store
  • delete(ref_doc_id) — delete all nodes from a document
  • query(query) — vector + hybrid search
  • get_nodes(node_ids) — retrieve nodes by ID
  • clear() — 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 SimpleVectorStore covers 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)

Source distribution for vantadb-llamaindex 0.5.0
File Size Uploaded
vantadb_llamaindex-0.5.0.tar.gz 8.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for vantadb-llamaindex 0.5.0
File Interpreter ABI Platform
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

Release history Release notifications | RSS feed

This release

0.5.0 This release

2 release files

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