Skip to content

kael-bit/engram-rs

v0.16.0 Breaking

This release includes breaking changes for platform teams planning a safe upgrade.

✓ No known CVEs patched
Read the diff → Tool health → What is this tool? →

✓ No known CVEs patched in this version

Topics

agents ai ai-agents ai-memory claudecode mcp
+4 more
mcp-server openclaw rust sqlite

Summary

AI summary

Recall overhaul introduces IDF-weighted scoring, multiplicative relevance calculation, and dynamic noise filtering.

Full changelog

Recall Overhaul

  • IDF-weighted term scoring: Query terms weighted by corpus rarity (ln(N/df)). Rare terms boost relevance more than common ones — works for both keywords and natural language queries.
  • Multiplicative scoring: score = relevance × (1 + 0.4×weight + 0.2×recency). Zero relevance → zero score, regardless of memory weight.
  • Dynamic noise filtering: Replaced 100+ hardcoded stopwords with df/N > 0.8 auto-detection. Language-agnostic, zero maintenance.
  • IDF miss penalty (0.85×) and orphan query penalty (0.5×) for better discrimination.
  • Tags as soft boost: Tag params no longer hard-filter. Each match → relevance × 1.2.
  • min_score default 0.30 at API layer to filter noise.

Topiary Clustering

  • Tag-aware merge/enforce: Combined similarity (cosine × 0.7 + tag_jaccard × 0.3) prevents grouping semantically-near but conceptually-different memories.
  • Absorb stays pure cosine: Fragments consolidate regardless of tag differences.
  • Absorb threshold 0.40 → 0.30 for easier fragment cleanup.

Prompt Quality

  • Unified tag guidance across all 7 LLM entry points: "name the SUBJECT, not meta-properties".
  • Strict kind definitions: procedural = reusable step-by-step workflows ONLY.
  • SETUP.md templates updated with same guidance.

Tests

  • Removed 38 trivial tests (-594 lines). 239 remaining tests all pass.

Weekly OSS security release digest.

The CVE patches and breaking changes that affected production tools this week. One email, every Sunday.

No spam, unsubscribe anytime.

Share this release

Track kael-bit/engram-rs

Get notified when new releases ship.

Sign up free

About kael-bit/engram-rs

Hierarchical memory engine for AI agents with automatic decay, promotion, semantic dedup, and self-organizing topic tree. Single Rust binary, zero external dependencies.

All releases →

Related context

Beta — feedback welcome: [email protected]