agiresearch/A-mem
A ChromaDB-backed memory layer that links and updates LLM agent notes
Automated SPDX check for reference only — not legal advice. Disclaimer
GitHub Star History
Full-history star trajectory from GitHub official history. Switch ranges or hover any point for exact counts.
Evidence-Backed Technical Brief
AI Deep ReviewArchitecture & Core Mechanics
A-MEM is an embeddable Python memory layer, not a standalone database service. The entry point is AgenticMemorySystem in agentic_memory.memory_system. On ingestion, it turns content into a structured note, generates descriptive metadata, checks related historical notes, and can link notes or revise existing metadata. ChromaDB supplies vector persistence and similarity retrieval; the links represent relationships between notes, not evidence of a separate graph database.
The initialization example configures all-MiniLM-L6-v2 for embeddings and gpt-4o-mini for generation. The package declares sentence-transformers, ChromaDB, LiteLLM, and the OpenAI client, along with rank_bm25 and NLTK. Those last two dependencies do not establish how sparse and dense scores are combined, or whether they are combined on the demonstrated search path. The exposed extension point is backend and model selection; a general plugin protocol is not established.
Key Capabilities & Differentiators
The demonstrated Python API supports add_note with content and optional tags, category, and a timestamp in YYYYMMDDHHmm format. It returns a memory ID; read retrieves the note by that ID, including its content, tags, context, and keywords, and delete removes a note by ID. search_agentic(query, k=5) illustrates a bounded retrieval call whose results expose IDs, content, and tags.
The distinguishing capability is that ingestion can change more than the new record. The system generates context and keywords, creates semantic connections to older notes, and can revise tags or context as related content arrives. The generation backends are OpenAI and Ollama; gpt-4o-mini is the concrete OpenAI example. Paper-result reproduction is handled in a separate repository, so evaluate this package on your own memory workload rather than treating the research results as a deployment benchmark.
Trade-offs & Limitations
Compared with using ChromaDB directly, A-MEM adds a policy for enriching and linking notes instead of leaving metadata and relationships entirely to the application. That is useful when memories accumulate over time and a new note can change how older information should be found. The cost is a heavier write path: embedding, related-note lookup, and model-driven decisions can add latency and, with a hosted backend, API spend. Generated metadata can also vary with the model or with the order in which notes arrive.
For fixed documents or predictable ingestion costs, a conventional vector index with application-owned metadata is simpler. If you adopt A-MEM, measure retrieval quality against that baseline and test how concurrent writes, partial failures, and deletion affect linked notes before relying on it in production. The MIT license is permissive, but hosted inference still requires a decision about which memory content may leave your environment, and model and provider terms apply separately.
Hardware & Deployment Guide
Install from the checkout with pip install . in a virtual environment, or use pip install -e . for development. The setuptools manifest identifies the package as agentic-memory 0.0.1 and declares Python >=3.8. Treat the interpreter floor as a packaging declaration rather than a tested compatibility matrix: validate dependency resolution on your target Python version and pin a working environment. There is no GitHub release in the supplied metadata, and the root listing includes no Dockerfile.
The OpenAI route needs API credentials and outbound connectivity; embeddings and ChromaDB still run on the application side. The local route needs a running Ollama installation and the selected model. For offline operation, stage the generation and embedding artifacts ahead of time and verify the application runs without network access. Budget persistent storage for the memory corpus and size compute from representative write and retrieval tests; local generation adds RAM or VRAM pressure that depends on model choice and concurrency.
Python agents that accumulate experiences across sessions and need to test whether generated metadata and links improve retrieval over a plain vector index.
Your corpus is static, writes must be predictable, or you need a turnkey network database with documented operational guarantees.
Quick Start & Installation
pip install .Comparison vs. Top RAG, Data & Memory Alternatives
Full comparison →| Repository | Stars | 7d Trend | Stack | License | Core Positioning |
|---|---|---|---|---|---|
| A-mem ★ | 1.2k | +18 | Python | MIT | A ChromaDB-backed memory layer that links and updates LLM agent notes |
| mem0 | 70k | +498 | Python | Apache-2.0 | A vector-backed memory layer for AI agents that need to recall past conversation |
| hindsight | 64.7k | +884 | Python | MIT | A bank-based memory service that turns agent interactions into durable knowledge |
| Memori | 17.9k | +337 | Python | — | An SDK-based agent memory layer for persistent state across sessions. |
AI Context Briefing (for Claude / Cursor / Windsurf)
Standardized architecture summary & quickstart commands ready to paste into coding agents.
curl -sL https://repoforai.com/repo/agiresearch/A-mem.md
Active README embeds unlock Hot-Tier 6h Telemetry Refresh automatically (zero pay-to-rank).
Frequently Asked Questions about A-mem
How do I integrate A-MEM into an existing agent or RAG pipeline?
Do I need a GPU, and where does the runtime overhead come from?
Can I use it commercially and keep memory data on premises?
When is A-MEM preferable to using ChromaDB directly?
Upstream README & Documentation
This profile focuses on independent engineering analysis and live telemetry. Read the full upstream README, changelog, and examples directly on GitHub.
Top 10 Breakout Open-Source AI Repos, Every Thursday
Signal-only digest of fast-growing AI repos, SPDX license alerts, and architecture picks. Zero spam.
Zero spam · 1-click unsubscribe · Privacy Policy