← Back to Leaderboard
Aagiresearch

agiresearch/A-mem

A ChromaDB-backed memory layer that links and updates LLM agent notes

View on GitHub ↗
Engineering Health (Methodology)
C · 48/100
Maintenance Activity
● Updated 11mo ago
Latest Release
Rolling commits (main)
Commercial License Check
MIT · Commercial Friendly

Automated SPDX check for reference only — not legal advice. Disclaimer

Maintenance6/35
Fork Adoption16/25
Release Cadence6/20
License Clarity20/20
Local AIAPI
Total Stars
★ 1,235
24h Growth
+11
7d Growth
+18
Forks
124

GitHub Star History

Full-history star trajectory from GitHub official history. Switch ranges or hover any point for exact counts.

agiresearch/A-mem Star History (2025-03-01 - 2026-12-03) ALL-TIME STAR HISTORY (2025-03 – 2026-12) +1.2k in 642d · avg +2/day 1.3k 652 0 2025-03-01: ★ 12025-04-12: ★ 2222025-05-24: ★ 3432025-07-05: ★ 4432025-08-16: ★ 5102025-09-27: ★ 5822025-11-08: ★ 6512025-12-20: ★ 7162026-01-31: ★ 7962026-03-14: ★ 8672026-04-25: ★ 9662026-06-06: ★ 1,0252026-07-18: ★ 1,1032026-08-29: ★ 1,1522026-10-10: ★ 1,1902026-12-03: ★ 1,235 ★ 1.2k 2025-03 2026-01 2026-12

Evidence-Backed Technical Brief

AI Deep Review

Architecture & 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.

Integration: Import AgenticMemorySystem from agentic_memory.memory_system and call it in process.
Storage: ChromaDB provides persistent vector storage and semantic retrieval.
Embeddings: The initialization example selects all-MiniLM-L6-v2, independently of the generation model.
Write path: New notes can gain generated context, keywords, and tags, link to related notes, and prompt changes to older metadata.
Retrieval and lifecycle: search_agentic accepts a result count k; read and delete address notes by ID.
Inference backends: Select OpenAI for hosted generation or Ollama for local generation.
Best For

Python agents that accumulate experiences across sessions and need to test whether generated metadata and links improve retrieval over a plain vector index.

Skip If

Your corpus is static, writes must be predictable, or you need a turnkey network database with documented operational guarantees.

Reviewed on 2026-12-02 · Grounded in GitHub README, root file tree & releasesMethodology

Quick Start & Installation

Local AIAPI
pip install .

Comparison vs. Top RAG, Data & Memory Alternatives

Full comparison →
RepositoryStars7d TrendStackLicenseCore Positioning
A-mem ★1.2k+18PythonMITA ChromaDB-backed memory layer that links and updates LLM agent notes
mem070k+498PythonApache-2.0A vector-backed memory layer for AI agents that need to recall past conversation
hindsight64.7k+884PythonMITA bank-based memory service that turns agent interactions into durable knowledge
Memori17.9k+337Python—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.

Raw .md ↗
curl -sL https://repoforai.com/repo/agiresearch/A-mem.md

Embed Star History Chart & Badges in README.md

Full-history Star History SVGs and velocity cards on GitHub Camo: drop-in replacement for OSSInsight and Star History widgets.

agiresearch/A-mem Star History on RepoForAI

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?

Instantiate AgenticMemorySystem in your Python application and call add_note for events worth retaining. Save the returned ID if you need direct reads or deletion, and call search_agentic(query, k=...) when assembling context for the next model turn. Your application decides what to store and what to inject into the prompt. The OpenAI option is an outbound API integration, not an HTTP API for A-MEM itself.

Do I need a GPU, and where does the runtime overhead come from?

No fixed GPU or VRAM requirement is specified. With OpenAI, the generation model runs remotely, but the application still runs the embedding workload and ChromaDB. With Ollama, budget for local generation as well; RAM, VRAM, and throughput depend on the selected model and concurrency. Benchmark note writes and retrieval separately because writes can include LLM-assisted organization and updates.

Can I use it commercially and keep memory data on premises?

The library is MIT-licensed, which permits commercial use and self-hosting subject to retaining the required notices when redistributing it. Model weights, dependencies, and API providers have their own terms. If memory content must stay on premises, use local inference and embeddings, provision the required model artifacts locally, and verify network behavior before handling sensitive data.

When is A-MEM preferable to using ChromaDB directly?

Choose A-MEM if LLM-generated tags and context, links between notes, or revision of related memories are features you intend to evaluate. Use ChromaDB directly if the job is to store embeddings and retrieve similar records while keeping metadata under application control. Direct use removes the LLM-driven organization step and makes write behavior easier to predict.

Upstream README & Documentation

This profile focuses on independent engineering analysis and live telemetry. Read the full upstream README, changelog, and examples directly on GitHub.

Maintaining agiresearch/A-mem? Pin to Homepage + competitor /alternatives pages with a custom Cloud/Demo CTA.Feature agiresearch/A-mem on Homepage & Alternatives ($19)
WEEKLY BREAKOUT DIGEST

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

Saved in your browser · Export Markdown RFC tables or jump into /vs compare