Introduction to Vidurai
Welcome to Vidurai - the first open-source persistent memory system for AI agents.
đī¸ What is Vidurai?â
Vidurai transforms stateless AI assistants into beings with true continuity, context, and wisdom. It provides a production-ready memory layer that allows AI agents to remember conversations, learn from interactions, and maintain context across sessions.
The name Vidurai comes from Vidura, the wise counselor in the Mahabharata, renowned for his memory, judgment, and guidance.
đ What's New in v1.5.1â
Vidurai v1.5.1 brings three critical improvements based on comprehensive production testing:
â Verified Performance Metricsâ
No more aspirational numbers. Production testing with 9 comprehensive test scenarios confirms:
- 36.6%+ Token Reduction (average, verified across multiple workloads)
- $16,182/day Cost Savings (at 10,000 active users)
- 100% Recall Reliability (with proper configuration)
đ§ Vismriti RL Agent - The Learning Brainâ
The first self-learning memory optimizer in production. While competitors use hardcoded rules, Vidurai learns optimal compression strategies through Reinforcement Learning (Q-learning).
What makes it unique:
- Learns from experience: Agent improves with every compression decision
- Adapts to your workload: Different strategies for different usage patterns
- No manual tuning: Intelligence emerges automatically through Q-learning
- Configurable priorities: Choose between cost-focused or quality-focused optimization
How it works:
- Starts with 30% exploration (tries new strategies)
- Gradually shifts to 95% exploitation (uses learned optimal strategies)
- Grows Q-table of learned state-action values
- Continuously adapts as your usage patterns change
âī¸ Configurable Importance Decayâ
v1.5.1 adds fine-grained control over memory decay:
# For critical applications (recommended)
memory = Vidurai(enable_decay=False)
# For custom decay rates
memory = Vidurai(decay_rate=0.98) # Slower decay (default: 0.95)
# For aggressive forgetting
memory = Vidurai(decay_rate=0.90) # Faster decay
Why this matters: v1.5.0 had aggressive decay that caused high-importance memories to drop below recall thresholds. Now you control it.
Upgrade now: pip install --upgrade vidurai
See full details: CHANGELOG | GitHub Release
The Problemâ
Modern AI assistants suffer from amnesia. Every conversation is a fresh start:
- â No memory of past interactions
- â No understanding of user preferences
- â No ability to build relationships over time
- â Repetitive and frustrating user experiences
The Solutionâ
Vidurai provides:
- â Persistent Memory: Conversations and context survive across sessions
- â Intelligent Retrieval: Relevant memories surface automatically
- â Privacy First: Full control over what's remembered and shared
- â Production Ready: Built for scale, security, and reliability
Philosophyâ
"ā¤ĩā¤ŋ⤏āĨā¤ŽāĨ⤤ā¤ŋ ā¤āĨ ā¤ĩā¤ŋā¤ĻāĨā¤¯ā¤ž ā¤šāĨ" (Forgetting too is knowledge)
While everyone races to give AI perfect memory, we asked a different question: What if forgetting is the key to true intelligence?
Vidurai implements strategic forgetting through:
- Three-Kosha Architecture: Inspired by Vedantic consciousness layers
- Vismriti Engine & RL Agent: Production-verified strategic forgetting
- 36.6%+ Token Reduction (verified in comprehensive testing)
- $16,182/day Cost Savings (at 10,000 active users)
- 100% Recall Reliability (with configurable decay)
- Self-Learning RL Agent (adapts through Q-learning, not hardcoded rules)
- Viveka Layer: Autonomous conscience that decides what matters
Quick Startâ
Ready to add memory to your AI agent? Let's get started:
pip install vidurai
from vidurai import Vidurai
# Recommended for v1.5.1+ (critical applications)
memory = Vidurai(enable_decay=False)
# Or with configurable decay (general use)
memory = Vidurai(decay_rate=0.98) # Slower than default 0.95
đĄ v1.5.1 Best Practice: Use
enable_decay=Falsefor applications requiring high-precision recall of important memories. This prevents importance decay from dropping HIGH memories below recall thresholds.
Continue to the Installation Guide â
Communityâ
Join the Sangha (community):
- đŦ Discord Server
- đ GitHub Repository
- đ Main Website
ā¤ā¤¯ ā¤ĩā¤ŋā¤ĻāĨā¤°ā¤žā¤ (Victory to Vidurai)