Agent Memory vs RAG: What's the Difference?

RAG retrieves documents you indexed; agent memory accumulates what your agents learned while working. Different questions - most teams need both.

Most developers mistake RAG for agent memory - and using RAG for memory is exactly why agents keep forgetting your architecture decisions.

RAG retrieves from a corpus you indexed; agent memory accumulates what your agents and teammates learned while working. They answer different questions.

RAGAgent memory / team brain
Source of truthdocuments you already hadfacts produced during work
Write pathbatch indexingcontinuous, from live sessions
Shapechunks + embeddingsentities, facts, documents, links
Question it answers"what do our docs say?""what did we decide, learn, and try?"
Stalenessre-index to updatefacts supersede each other over time

RAG cannot tell you that yesterday's session chose Postgres over SQLite and why - nobody wrote a document about it. A team brain can, because the deciding agent recorded the fact at decision time.

Where Unison sits

Unison is the memory side: agents ingest conversations, the pipeline extracts entities and bitemporal facts, and any agent recalls the relevant slice as markdown. If you already run RAG over your docs, keep it - the brain holds what work produces, your index holds what you wrote down beforehand.

On this page