llama-index-vector-stores-mnestic
A LlamaIndex vector store backed by mnestic — an embedded graph + vector + full-text database (a maintained fork of CozoDB). Retrieval is hybrid: dense (HNSW) + keyword (full-text) fused with Reciprocal Rank Fusion, in one call.
mnestic is a maintained fork of CozoDB; it is not the official CozoDB. Original design credit belongs to Ziyang Hu and the Cozo Project Authors.
pip install llama-index-vector-stores-mnestic
Use 0.2.1 or newer. It validates relation, column, index, distance, and dtype identifiers and coerces numeric HNSW settings before constructing CozoScript; earlier releases interpolated those configuration values directly.
from llama_index.core import VectorStoreIndex, StorageContext, Document
from llama_index.vector_stores.mnestic import MnesticVectorStore
vector_store = MnesticVectorStore(dim=1536, engine="sqlite", path="mydocs.db")
storage_context = StorageContext.from_defaults(vector_store=vector_store)
index = VectorStoreIndex.from_documents(
[Document(text="the cat sat on the mat")],
storage_context=storage_context,
)
nodes = index.as_retriever(similarity_top_k=4).retrieve("feline")
dim must match your embedding model's dimension. query runs hybrid search when
the query carries text (the usual index path), otherwise vector-only.
Engine pass-through: graph legs and more
Extra keyword arguments flow from the retriever to the engine's hybrid query via
vector_store_kwargs. That includes graph_legs — fuse graph proximity into
the ranking alongside the dense and keyword legs, in the same single call:
retriever = index.as_retriever(
similarity_top_k=4,
vector_store_kwargs={"graph_legs": [{
"edge_relation": "links", "from_col": "src", "to_col": "dst",
"seeds": ["doc-1"], "max_hops": 2, "label": "graph",
}]},
)
MnesticRetriever(..., search_kwargs={...}) forwards the same way, and so do
extra_lists, vector_k, fts_k, rrf_k, and future engine keys — no adapter
release needed when the engine grows new knobs.
License
Mozilla Public License 2.0.
Metadata
Release files for llama-index-vector-stores-mnestic 0.2.1
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 |
|---|---|---|---|---|
| llama_index_vector_stores_mnestic-0.2.1.tar.gz | 7.8 kB | With provenance | Details for llama_index_vector_stores_mnestic-0.2.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| llama_index_vector_stores_mnestic-0.2.1-py3-none-any.whl | Python 3 | none | any | Details for llama_index_vector_stores_mnestic-0.2.1-py3-none-any.whl |
Total release size: 15.1 kB
Release files / llama_index_vector_stores_mnestic-0.2.1.tar.gz
| Download URL | llama_index_vector_stores_mnestic-0.2.1.tar.gz |
|---|---|
| Size | 7.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ab192be1f85abe3b04f841ca53e4291927477d5910ae27d1a642100c07df8890
|
|
BLAKE2b-256 checksum How to use checksums |
3fa0660769de332debd2809bed218be645abcf50805fa7bf93f8ad2cf445c5ec
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Aug 8, 2026.
Transparency logRelease files / llama_index_vector_stores_mnestic-0.2.1-py3-none-any.whl
| Download URL | llama_index_vector_stores_mnestic-0.2.1-py3-none-any.whl |
|---|---|
| Size | 7.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
38c881cfd063bd6ae5b8eb87fcc569af1506b45e05fc413e7bae08e3ba3756f4
|
|
BLAKE2b-256 checksum How to use checksums |
e44231d59653addab6f617c4c55694a6a9b99c847d4bca2ac26707e1038cc239
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Aug 8, 2026.
Transparency logSecurity for llama-index-vector-stores-mnestic 0.2.1
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.
Full provenance
All 2 files in this release have been uploaded with provenance metadata.
Attestation for llama_index_vector_stores_mnestic-0.2.1.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Aug 8, 2026.
Transparency logA 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.