Skip to content

mnestic 0.8.0

Choose a tag to compare

@shuruheel shuruheel released this 30 May 17:37
· 40 commits to main since this release

First release of mnestic, an independently maintained fork of CozoDB tuned as a substrate for agentic memory. Built on upstream 481af05 — 30 commits ahead of cozo 0.7.6. The importable crate name stays cozo, so existing CozoDB code works unchanged.

[dependencies]
mnestic = "0.8.0"

Fixes

  • Equality pushdown*rel[k, ..], k == <value> now compiles to a keyed stored_prefix_join instead of a full scan (~28–29× faster single-row primary-key lookups, measured at 5k rows). Numeric equalities keep cross-type op_eq semantics.
  • Parser fix (#281) — identifiers that start with a keyword literal (nullable_column, trueValue, falsey) now parse correctly.
  • Unreleased upstream fixes for free — the fork point is 30 commits ahead of the published 0.7.6, including the stored_prefix_join correctness fix.
  • env_logger moved to a dev-dependency for a slimmer dependency graph (#287).

New — hybrid retrieval for agentic memory

Datalog-composable fixed rules:

  • ReciprocalRankFusion (alias RRF) — fuse vector (HNSW) + full-text (FTS) + graph-traversal result lists into one ranking.
  • MaximalMarginalRelevance (alias MMR) — diversity-aware reranking that avoids near-duplicate recalls.
  • rand_ulid() / ulid_timestamp() — lexicographically-sortable identifiers for time-ordered scans (#296).

Full detail in CHANGELOG-FORK.md. 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.