Skip to Content
Home
Unforget

Unforget

Fast, self-hosted memory for AI agents. Zero-LLM writes. PostgreSQL + pgvector.

pip install unforget
~7ms writes~25ms recall0 LLM calls on write4 retrieval channels

Quick Start

from unforget import MemoryStore store = MemoryStore("postgresql://user:pass@localhost/db") await store.initialize() memory = store.bind(org_id="acme", agent_id="support-bot") # Write — instant, no LLM await memory.write("User prefers dark mode", tags=["preference"]) # Recall — 4-channel hybrid search results = await memory.recall("user preferences", limit=5) for r in results: print(f"{r.content} (score: {r.score:.3f})")

Why Unforget?

~7ms writesZero LLM calls on the write path. Embed + insert, done.
~25ms recallSemantic + BM25 + entity + temporal search, fused with RRF.
Self-hostedPostgreSQL + pgvector. No cloud vendor, no vector DB dependency.
Background consolidationDedup, decay, and LLM promotion while agents sleep.
Drop-in wrapperswrap_openai() and wrap_anthropic() — memory in one line.
Apache 2.0Open source, no vendor lock-in.

Get Started → · GitHub →
Last updated on
Apache 2.0 · Unforget