Skip to content

RAG vs Memory

RAG and memory are related, but they are not the same layer.

QuestionRAGMemory
MeaningRetrieval-Augmented GenerationPersistent and retrievable context layer
ScopeRetrieve context for a model callStore, retrieve, relate, filter, and govern context
Typical dataDocuments and passagesDocuments, embeddings, graph entities, task state, preferences
RiskRetrieved text may be untrustedStored context may become stale, sensitive, or over-broad
Demo artifactRetrieval behavior in memory.yamlFull memory configuration in memory.yaml

Decision Rule

Use RAG as a generation pattern. Design memory as an architecture layer with visibility, provenance, retrieval, evaluation, and governance.

Page created by Dr. C. Klukas