Tools · LlamaIndex

LlamaIndex Memory for Agents

LlamaIndex provides composable memory for agents — chat memory buffers, vector memory and memory blocks — letting LlamaIndex users assemble persistence without leaving the framework.

LlamaIndex memory

1
Buffer
2
Vector
3
Compose

Components

LlamaIndex memory components

ComponentWhat it doesWhen to use
ChatMemoryBufferStores recent chat messagesShort-term session memory
VectorMemorySemantic search over past interactionsLTM-lite within LlamaIndex
Composable memory blocksMix buffer + vector in agent workflowsCustom agent pipelines
Vector store integrationPlug any supported vector DBProduction LTM backing

Vector databases for AI memory

Comparison

LlamaIndex vs dedicated memory frameworks

ApproachStrengthLOCOMO JBest for
EngramManaged Weaviate pipelineN/A publiclyWeaviate shops
LlamaIndex DIYComposable, in-frameworkN/A (DIY)LlamaIndex agent workflows
Mem0Managed extraction API66.9Framework-agnostic POC
LangMemLangGraph native58.1LangChain shops

LOCOMO J: Mem0 66.9, LangMem 58.1 (Chhikara et al., 2025 eval).

Best AI memory tools · Mem0 alternatives

FAQ

Frequently asked questions

What LlamaIndex memory types exist?

ChatMemoryBuffer (recent messages), VectorMemory (semantic search over history), and composable memory blocks in agent workflows. Integrates with any LlamaIndex-supported vector store.

LlamaIndex memory vs LangChain?

Both offer buffer + vector patterns. LangChain adds LangMem for LangGraph-native LTM. LlamaIndex composes memory in agent workflows. Engram/Mem0 work with either via HTTP.

LlamaIndex vs Mem0 for agent memory?

LlamaIndex = DIY composition in-framework. Engram = Weaviate-native managed pipeline. Mem0 = framework-agnostic managed extraction + retrieval API.

Is LlamaIndex enough for production LTM?

VectorMemory + external vector DB works for many workloads. For managed extraction, eval-backed pipelines compare Engram or Mem0 alongside LlamaIndex agents.

What vector store should LlamaIndex memory use?

Any LlamaIndex-supported store — Weaviate (Engram), Pinecone, pgvector, Qdrant. See vector databases.

LlamaIndex agent memory in 2026?

Composable buffers + vector memory for in-framework persistence. Pair with Engram/Mem0 for managed cross-session LTM. See add memory guide.