Skip to main content

LlamaIndex vector store for mnestic — embedded graph + vector + full-text store with one-call hybrid retrieval.

Project description

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.

pip install llama-index-vector-stores-mnestic
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.

License

Mozilla Public License 2.0.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

llama_index_vector_stores_mnestic-0.1.0.tar.gz (5.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

File details

Details for the file llama_index_vector_stores_mnestic-0.1.0.tar.gz.

File metadata

File hashes

Hashes for llama_index_vector_stores_mnestic-0.1.0.tar.gz
Algorithm Hash digest
SHA256 3ff200b54dc82aacb83860f7940f24f251c022c242a9191fb1968fbaadfc10c7
MD5 ef2aaa9cf31cfe6ea4cdd7757be8c8f4
BLAKE2b-256 ad810b7b7925273ad96498513b3696a7eb6e19e4b1081d51027324521c11fd8f

See more details on using hashes here.

Provenance

The following attestation bundles were made for llama_index_vector_stores_mnestic-0.1.0.tar.gz:

Publisher: python-publish.yml on shuruheel/mnestic

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file llama_index_vector_stores_mnestic-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for llama_index_vector_stores_mnestic-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b8bb5b86185afcd0a42b81bd2ce3730f39ee225e330d6c671e252f8e69990c67
MD5 b710e8e1a90582580305960cb8188a59
BLAKE2b-256 5b09f4b8fabab6a9898485788951e11ec148c926c6509218d0ccb9ced9766b37

See more details on using hashes here.

Provenance

The following attestation bundles were made for llama_index_vector_stores_mnestic-0.1.0-py3-none-any.whl:

Publisher: python-publish.yml on shuruheel/mnestic

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page