TDAILongTermMemory
Enterprise-grade long-term memory implementation using TDAI services for cloud-based persistent storage with basic semantic search capabilities.Overview
TDAILongTermMemory provides reliable long-term memory capabilities with:- Strategy-based Organization: Categorize memories by type and purpose
- Cloud Persistence: Reliable storage with TDAI infrastructure
- Basic Semantic Search: Content-based retrieval capabilities
- Batch Operations: Efficient bulk memory operations
- Enterprise Integration: Compatible with existing TDAI deployments
Configuration
Configuration Parameters
TDAI configuration object
Core Interface Methods
TDAILongTermMemory implements the standard long-term memory interface methods. For complete API documentation includingrecord(), recordBatch(), retrieve(), delete(), update(), clear(), and other methods, see the Memory Service API Reference.
Usage Examples
Basic Memory Operations
Memory Retrieval
Memory Management
Features
Strategy-Based Organization
- Categorize memories by type (
preferences,facts,interests, etc.) - Filter and retrieve by strategy
- Organize memories for different use cases
Cloud Persistence
- Reliable storage with TDAI infrastructure
- Automatic backup and recovery
- Cross-session persistence
- Enterprise-grade security
Basic Search Capabilities
- Content-based similarity search
- Strategy filtering
- Metadata-based queries
- Sorting and pagination
Batch Operations
- Efficient bulk recording
- Batch updates and deletions
- Optimized for large datasets
Limitations
Manual Memory Extraction
Unlike Mem0LongTermMemory, TDAI implementation requires manual memory extraction:Basic Consolidation
- No automatic memory consolidation
- Manual deduplication required
- Limited relationship mapping
Search Limitations
- Basic semantic search capabilities
- No advanced vector similarity
- Limited graph relationship support
Best Practices
- Define Clear Strategies: Use consistent strategy names across your application
- Include Metadata: Add confidence scores, sources, and tags for better organization
- Regular Cleanup: Implement periodic cleanup of outdated memories
- Manual Extraction: Develop robust logic for extracting important information
- Batch Operations: Use batch methods for better performance with large datasets
- Error Handling: Implement proper error handling for network operations