Memory Configuration
This page provides comprehensive documentation for configuring the PraisonAI memory system, including graph database integration, quality scoring mechanisms, and embedder options.Memory System Overview
The memory system in PraisonAI supports multiple storage backends and sophisticated retrieval mechanisms:- Short-term Memory: Recent interactions and context
- Long-term Memory: Persistent knowledge storage
- Entity Memory: Relationship and entity tracking
- Graph Memory: Complex relationship networks
- User Memory: User-specific preferences and history
Core Configuration
Basic Memory Setup
Installing Optional Providers
Most memory providers require optional dependencies:"provider": "mem0"), PraisonAI will raise this error instead of silently falling back. The default provider ("provider": "rag") falls back gracefully to built-in storage.
Provider Configuration
Graph Store Configuration
Graph Database Setup
Graph Schema Definition
Advanced Graph Queries
Quality Score Configuration
Quality Scoring System
Quality Score Components
Relevance Scoring
Recency Scoring
Confidence Scoring
Embedder Configuration
Embedder Options
Memory sizes its vector store from
get_dimensions(embedding_model). Before PraisonAI PR #3027 (releases after 2026-07-14), two lookup bugs produced dimension mismatches on memory / RAG upsert:- Case-sensitive keys —
all-MiniLM-L6-v2andsentence-transformers/all-MiniLM-L6-v2fell through to the1536default even though the model emits384. - Substring collision —
voyage/voyage-3-lite(512) matched the shortervoyage-3(1024) entry first, so memory collections were sized1024while the model emits512. Anyvoyage-3-lite,bge-small-en-v1.5, or other short-suffix model created on an older release needs to be re-created after upgrading.
praisonaiagents and re-create the collection to fix either failure mode.voyage-3-lite was affected by a related bug on the same release: the substring lookup returned 1024 (voyage-3’s dimension) instead of 512. Fixed in the follow-up commits of PR #3027 (praisonaiagents after 1.6.151). Same recovery — upgrade praisonaiagents and re-create any collection that was created 1024-dim with a voyage-3-lite embedding.Multi-Modal Embedding
Storage Configuration
Database Paths and Structure
Memory Persistence
Performance Optimization
Caching Configuration
Indexing Strategy
Memory Cleanup and Maintenance
Cleanup Configuration
Complete Configuration Example
Environment Variables
Troubleshooting
Common Issues
-
Graph connection failures
-
Memory retrieval too slow
-
Quality scores too low
See Also
- Memory Concepts - Understanding memory types
- Knowledge Base - Knowledge management
- Best Practices - Configuration guidelines

