What is Advanced Retrieval?
Advanced Retrieval gives you precise control over how memories are found and ranked. While basic search uses semantic similarity, these advanced options help you find exactly what you need, when you need it.Search Enhancement Options
Keyword Search
Expands results to include memories with specific terms, names, and technical keywords.- Searching for specific entities, names, or technical terms
- Need comprehensive coverage of a topic
- Want broader recall even if some results are less relevant
- Working with domain-specific terminology
Reranking
Reorders results using deep semantic understanding to put the most relevant memories first.- Need the most relevant result at the top
- Result order is critical for your application
- Want consistent quality across different queries
- Building user-facing features where accuracy matters
Memory Filtering
Filters results to keep only the most precisely relevant memories.- Need highly specific, focused results
- Working with large datasets where noise is problematic
- Quality over quantity is essential
- Building production or safety-critical applications
Real-World Use Cases
Python
Choosing the Right Combination
Recommended Configurations
Best Practices
✅ Do
- Start simple with just one enhancement and measure impact
- Use keyword search for entity-heavy queries (names, places, technical terms)
- Use reranking when the top result quality matters most
- Use filtering for production systems where precision is critical
- Handle empty results gracefully when filtering is too aggressive
- Monitor latency and adjust based on your application’s needs
❌ Don’t
- Enable all options by default without measuring necessity
- Use filtering for broad exploratory queries
- Ignore latency impact in real-time applications
- Forget to handle cases where filtering returns no results
- Use advanced retrieval for simple, fast lookup scenarios
Performance Guidelines
Latency Expectations
Python
Optimization Tips
- Cache frequent queries to avoid repeated advanced processing
- Use session-specific search with
run_id
to reduce search space - Implement fallback logic when filtering returns empty results
- Monitor and alert on search latency patterns
Ready to enhance your search? Start with keyword search for broader coverage, add reranking for better ordering, and use filtering when precision is critical.