Skip to main content

Embedded graph + vector + full-text database with Datalog — a maintained fork of CozoDB, tuned as a substrate for agentic memory.

Project description

mnestic (Python)

Embedded graph + vector + full-text database with Datalog queries — a maintained fork of CozoDB, tuned as a substrate for agentic memory. This package is the in-process Python binding (no server required).

mnestic is not the official CozoDB and is not affiliated with or endorsed by its original authors. All credit for the original design belongs to Ziyang Hu and the Cozo Project Authors. See the fork repository for provenance and licensing.

pip install mnestic
from mnestic import CozoDbPy

db = CozoDbPy("mem", "", "{}")  # engines: "mem", "sqlite" (file path), ...
db.run_script("?[x] <- [[1],[2],[3]]", {}, False)

# One-call hybrid retrieval (HNSW + full-text fused with Reciprocal Rank Fusion),
# over a relation that has an HNSW index and an FTS index:
hits = db.hybrid_search({
    "relation": "docs",
    "vector_index": "vec", "query_vector": [0.1, 0.9], "vector_k": 5,
    "fts_index": "fts", "query_text": "vector search", "fts_k": 5,
})
# -> {"headers": ["id", "score"], "rows": [["d3", 0.033], ...], "next": None}

For idiomatic LangChain / LlamaIndex usage, install the integration packages (langchain-mnestic, llama-index-vector-stores-mnestic).

The query language (CozoScript / Datalog) and engine semantics follow CozoDB; see the upstream documentation and the fork changelog.

License

Mozilla Public License 2.0. Original work © 2022 The Cozo Project Authors; fork modifications © 2026 Shan Rizvi.

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

mnestic-0.8.3.tar.gz (427.8 kB view details)

Uploaded Source

Built Distributions

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

mnestic-0.8.3-cp37-abi3-win_amd64.whl (7.8 MB view details)

Uploaded CPython 3.7+Windows x86-64

mnestic-0.8.3-cp37-abi3-manylinux_2_28_aarch64.whl (8.7 MB view details)

Uploaded CPython 3.7+manylinux: glibc 2.28+ ARM64

mnestic-0.8.3-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (9.1 MB view details)

Uploaded CPython 3.7+manylinux: glibc 2.17+ x86-64

mnestic-0.8.3-cp37-abi3-macosx_11_0_arm64.whl (7.3 MB view details)

Uploaded CPython 3.7+macOS 11.0+ ARM64

mnestic-0.8.3-cp37-abi3-macosx_10_12_x86_64.whl (8.2 MB view details)

Uploaded CPython 3.7+macOS 10.12+ x86-64

File details

Details for the file mnestic-0.8.3.tar.gz.

File metadata

  • Download URL: mnestic-0.8.3.tar.gz
  • Upload date:
  • Size: 427.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for mnestic-0.8.3.tar.gz
Algorithm Hash digest
SHA256 60bdf20e83854444aecc6c1a1c0cf562eba7653e86f72a94bb451579092c0ab3
MD5 6fda6960f365e6f7d3f9c5fd7130e558
BLAKE2b-256 748203e99dccd13cf3b9ad669099444eadc50ce35d1c7e95606b69f9f904165e

See more details on using hashes here.

Provenance

The following attestation bundles were made for mnestic-0.8.3.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 mnestic-0.8.3-cp37-abi3-win_amd64.whl.

File metadata

  • Download URL: mnestic-0.8.3-cp37-abi3-win_amd64.whl
  • Upload date:
  • Size: 7.8 MB
  • Tags: CPython 3.7+, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for mnestic-0.8.3-cp37-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 51e10d3a14a37437af4ea2b0b7d0dc6e0db754a3458c8669facf7bc8eaad1a7a
MD5 0207511cc89de08d28949d715ee57e15
BLAKE2b-256 e8c1221d0537247909835b028ee1317170f8ba1a7d0175867c515c96f6bd691d

See more details on using hashes here.

Provenance

The following attestation bundles were made for mnestic-0.8.3-cp37-abi3-win_amd64.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.

File details

Details for the file mnestic-0.8.3-cp37-abi3-manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for mnestic-0.8.3-cp37-abi3-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 65f09502d8bbe073dad5e6c3577484c092ff88a2742ba5be949dfe01a44abe16
MD5 bc70a911fa83551532335a1b30d12457
BLAKE2b-256 3d7bc87b3baad4a2c53c4c15a05ce9115bcde30f9d8fc84d49e06c78ba353dcd

See more details on using hashes here.

Provenance

The following attestation bundles were made for mnestic-0.8.3-cp37-abi3-manylinux_2_28_aarch64.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.

File details

Details for the file mnestic-0.8.3-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for mnestic-0.8.3-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 124310f26647e0d9109ad59bcbd74f19f420b13db74181c11fcd5aded6ceedc0
MD5 e1fb7e548de373f41d06211c5c0d0cd3
BLAKE2b-256 c2c1ba17a9a70d67349fc07f021a7c68ac775797fada4994585b1ab3e74a424e

See more details on using hashes here.

Provenance

The following attestation bundles were made for mnestic-0.8.3-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.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.

File details

Details for the file mnestic-0.8.3-cp37-abi3-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for mnestic-0.8.3-cp37-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 ca9eb4d98c874ef8e36446b9ce1a63cb331960bb4a01e8bc3a05a3ce80682db6
MD5 03c053776cb397381c9707bb9ea2af70
BLAKE2b-256 ca4c03829d4082c7b2709c501f0e70d8a7287ec03508fb38f8666f609f2356cc

See more details on using hashes here.

Provenance

The following attestation bundles were made for mnestic-0.8.3-cp37-abi3-macosx_11_0_arm64.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.

File details

Details for the file mnestic-0.8.3-cp37-abi3-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for mnestic-0.8.3-cp37-abi3-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 30b2a78fb6612c58cb5290a41b462f988bca3793a637aeb87f0e0296478c43a9
MD5 34ef2df880e52df2ef3a9c357cab09cb
BLAKE2b-256 bc860986fd51d0759fdaee36d49a381ef1fd073e9a45d74dd6d250d53cb4bfda

See more details on using hashes here.

Provenance

The following attestation bundles were made for mnestic-0.8.3-cp37-abi3-macosx_10_12_x86_64.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