Quick Start
1
Enable Learning with Defaults
2
Configure Learning Capabilities
3
Use a Database Backend
How It Works
Choose a Learning Mode
Choose a Storage Backend
Configuration Options
LearnConfig Python Reference
Full parameter reference for LearnConfig
Common Patterns
Self-improving assistant with retention governance:Best Practices
Start with learn=True before tuning
Start with learn=True before tuning
Enable learning with defaults first. Once you understand what gets captured, switch to
LearnConfig to enable only the capabilities you need (persona, insights, patterns).Use agentic mode for hands-off learning
Use agentic mode for hands-off learning
Set
mode="agentic" to have the agent automatically extract and store learnings after each conversation. This requires no manual action from users or developers.Set retention limits in production
Set retention limits in production
Use
max_entries and retention_days to prevent unbounded growth. A limit of max_entries=1000 with retention_days=180 keeps the learning store manageable.Use sqlite or redis for persistence across restarts
Use sqlite or redis for persistence across restarts
The default
file backend stores JSON in ~/.praison. For production or multi-instance setups, use backend="sqlite" or backend="redis" with a db_url.Related
Memory Config
Session and persistent memory configuration
Agent Learning
Agent learn feature overview
Learning Retention
Govern how long learnings are kept
Learn Skill
Teach agents new skills dynamically

