Back to Projects

Case Study

AI Memory Engine

Persistent Semantic Memory for AI Workflows

PythonFastAPIDeep Lakesentence-transformersUvicornMCPRailway Volumes

The Problem

AI assistants lack persistent memory across sessions. Each conversation starts fresh, forcing models to re-derive findings. Without attribution and change tracking, teams cannot share knowledge or track who contributed what to the collective understanding.

The Solution: AI

AI Memory Engine stores facts and notes as embeddings, then recalls them by meaning rather than keywords. Storage is an append-only revision log so edits and deletes never overwrite data, and every write is attributed to the agent that made it with a change feed for sharing findings across assistants.

  • Append-Only Revision Log*: Every write appends a row; nothing is ever mutated or rewritten. Edits append a new revision with the same ID, deletes append tombstones, and history remains recoverable through /memories/{id}/revisions.
  • Agent Attribution*: Every write records who made it via X-Agent header. The change feed (GET /feed) replays the log so Claude, Cursor, and ChatGPT can share findings against one store instead of each re-deriving them.
  • Semantic Search*: Store memories with duplicate-safe POST /memories, then search by meaning with GET /memories/search using vector similarity, tag filters, and score thresholds.
  • Crash Recovery*: Write-ahead log (<dataset>.wal.jsonl) captures every write before storage. On startup, the store resets to the last good checkpoint, removes stale locks, and replays missing WAL rows.

The Impact

AI Memory Engine gives AI assistants persistent, attributable memory. Teams can share knowledge across Claude, Cursor, and ChatGPT through a single store. The append-only design ensures history survives edits and deletes while writes remain O(1) for performance.

Interested in AI?

Free tier, then $49/mo or $199/mo for team-scale usage.

See plans & pricing