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.4.tar.gz (429.3 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.4-cp37-abi3-win_amd64.whl (7.8 MB view details)

Uploaded CPython 3.7+Windows x86-64

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

Uploaded CPython 3.7+manylinux: glibc 2.28+ ARM64

mnestic-0.8.4-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.4-cp37-abi3-macosx_11_0_arm64.whl (7.3 MB view details)

Uploaded CPython 3.7+macOS 11.0+ ARM64

mnestic-0.8.4-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.4.tar.gz.

File metadata

  • Download URL: mnestic-0.8.4.tar.gz
  • Upload date:
  • Size: 429.3 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.4.tar.gz
Algorithm Hash digest
SHA256 515c92642704c86fab66de2493d5eeb983c380f6268cc80ab9d33f46caa02058
MD5 0c5cb51552fa50a5bc298138072625ff
BLAKE2b-256 ac520d47abecba6a1476b5351e8faa49380ec91010b509684b28097117f308a6

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: mnestic-0.8.4-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.4-cp37-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 abffa343af738801e43b641fc164776438ae1765e9ae84419ec112dff9fc4026
MD5 7245a7ca8b3ca81a66f3772c0064692d
BLAKE2b-256 cff101df095eafb931fbca77935e867e32ee4d0750e3a68730e5dc6f0c62b313

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for mnestic-0.8.4-cp37-abi3-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 636e2e15fe207d42053e1009b869f4255815f0a3ee2de9590cd5b8a3807b179d
MD5 bab22787574ae63a342d2f032a4034de
BLAKE2b-256 6b4b4df98046e9970e2a97751d6d3caa00e936fcc39502b594d24e4e995366fd

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for mnestic-0.8.4-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 e5f094c2ff500ab2cde1faeea9aa8edc1c561076c297254133f04f6169b30ee9
MD5 f66256e393b3704e68495c13d943cbb1
BLAKE2b-256 9779dd0ed186b903d30edd15d053f7fa68f97be542028731c1f1ee6afcfff2ff

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for mnestic-0.8.4-cp37-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 aff374632768207c0a8743bf85d648b718aca0ec3a1b53238feb4635aea05fcd
MD5 752f034737483c19c7101cac7e2987a3
BLAKE2b-256 15121eee55e604f3870f48b453f1a661b20a3442043854472a61a62dcb57308f

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for mnestic-0.8.4-cp37-abi3-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 c30ed60d7e7c5421700bcd97387b439f0470968d37a61ba5f7cf2c40ce3b3c39
MD5 d9c80676b3dc015cefdb6d90906a2e96
BLAKE2b-256 d9758a0501817301eb04616038da9508dae73226984b3262ad950ee3dbb772cf

See more details on using hashes here.

Provenance

The following attestation bundles were made for mnestic-0.8.4-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