Documentation Index
Fetch the complete documentation index at: https://0g.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
Search Memory
Search through stored data and conversation history using various search methods.Overview
The Memory system provides powerful search capabilities to find relevant information across both persistent storage and conversation history. This enables building intelligent applications that can recall context and find related information efficiently.Search Methods
Basic Search
While the current implementation doesn’t include built-in search functionality, you can implement search patterns using the existing memory methods:Conversation Search
Search through conversation messages:Examples
Search Patterns
Fuzzy Search
Multi-field Search
Time-based Search
Performance Considerations
- Indexing: Build search indexes for frequently searched data
- Caching: Cache search results for repeated queries
- Pagination: Implement pagination for large result sets
- Async Operations: Use concurrent searches for multiple keys
- Memory Usage: Be mindful of memory usage with large datasets
Best Practices
- Normalize Text: Convert to lowercase and remove special characters
- Use Keywords: Extract meaningful keywords for better matching
- Score Results: Implement relevance scoring for better ranking
- Handle Edge Cases: Account for empty data and malformed content
- User Feedback: Allow users to refine searches based on results