Search & Retrieval
Search that understands meaning, not just keywords. Hybrid ranking combines semantic similarity, keywords, recency, usage patterns, and graph connections for intelligent results.Search understands concepts (not just exact words), weights by importance and recency, and automatically expands context through semantic waypoints.
Hybrid Search: 5 Ranking Signals
Traditional search: keywords only. Memory Module: 5 intelligent signals.Vector Similarity (40%)
Semantic understanding via embeddingsSearch: “state management”
Finds: “React hooks,” “Redux,” “Context API”(Even without exact keywords!)
Keyword Matching (30%)
Traditional BM25 algorithmExact phrase matching for precision“JWT token expiration” → Exact matches rank highest
Recency Boost (15%)
Newer = more relevantRecent memories get ranking boostUpdated last week > Created 6 months ago
Access Frequency (10%)
Team usage patternsFrequently accessed = valuableGuide accessed 50 times > Alternative accessed 2 times
Waypoint Bonus (5%)
Context expansionDirect match: 100%
1 hop away: 80%
2 hops: 64%
3 hops: 51%
min_salience (default: 0.3) and ranked.
Search Modes
- Semantic (Default)
- Filtered
- Context Expansion
- Precision
Best for: Concept queries, explorationResults: JWT, OAuth, API keys, sessions—even without exact keywordsProcess:
- Query vectorized
- Vector similarity comparison
- Combined with other signals
- Ranked by final score
Search Parameters
query (required)
query (required)
Type: StringTips:
- Natural language: “How do we deploy?”
- Keywords: “JWT token expiration”
- Concepts: “state management patterns”
limit (optional, default: 10)
limit (optional, default: 10)
Type: Integer (1-100)When to adjust:
- Lower (5): Quick lookup
- Default (10): Balanced
- Higher (50): Comprehensive research
sector (optional)
sector (optional)
Values: episodic, semantic, procedural, emotional, reflectiveExamples:
tags (optional)
tags (optional)
min_salience (optional, default: 0.3)
min_salience (optional, default: 0.3)
Type: Float (0.0-1.0)When to adjust:
- Lower (0.1): Include older memories
- Default (0.3): Balanced
- Higher (0.7): Only strong memories
expand_waypoints (optional, default: true)
expand_waypoints (optional, default: true)
Type: BooleanWhen to disable:
- Speed-critical searches
- Precise lookups (exact answer)
- Already have many results
max_hops (optional, default: 3)
max_hops (optional, default: 3)
Type: Integer (1-5)Values:
- 1: Immediate neighbors only
- 3: Balanced (default)
- 5: Deep exploration
Search Examples
- Concept Search
- Filtered Search
- Precision
- Research
Query:Results:
Advanced Techniques
Combining Filters
Progressive Refinement
Start broad:Using Access Patterns
Best Practices
Use Natural Language
Good: “How do we handle API errors?”Also good: “error handling pattern”Both work! Semantic search understands natural language.
Start Broad, Then Filter
Don’t over-constrain first search.Start broad → See results → Add filters
Waypoints for Exploration
Learning or researching? Enable waypoint expansion.Discover concepts you didn’t know to search for.
Precision for Lookups
Need specific answer fast? Disable waypoints.Speed + precision over context.
Sector Filters Strategically
- Need “why”? → Reflective
- Need “how-to”? → Procedural
- Need facts? → Semantic
- Need recent events? → Episodic
Trust the Ranking
Hybrid algorithm tuned for relevance.Check top 3-5 results before adjusting.
Performance
Search Speed
| Type | Speed |
|---|---|
| Simple (no waypoints) | ~50ms |
| With waypoints (3 hops) | ~100-200ms |
| Deep exploration (5 hops) | ~300-500ms |
| Large result set (50+) | ~200-400ms |
Optimization Tips
- Appropriate limit: Don’t request 100 if you need 10
- Filter first: Sector/tag filters reduce search space
- Adjust max_hops: 1-2 for speed, 3-5 for exploration
- Cache-friendly: Repeated searches ~10x faster (caching)
Troubleshooting
Memory not in search results
Memory not in search results
Possible reasons:
- Embeddings still generating (wait 10-30s after storing)
- Salience below threshold (try
min_salience: 0.1) - Filtered out by sector/tags (remove filters)
- Query too specific or too vague
Search for exact phrases
Search for exact phrases
Use quotes (if AI assistant supports):Or disable waypoints for keyword-focused search.
Unrelated results
Unrelated results
See relevance scores
See relevance scores
Via API: Scores returned with resultsVia MCP: AI assistant sees scores and can share them
Next Steps
Semantic Waypoints
Deep dive into context expansion
Best Practices
Search optimization strategies
API Reference
Complete search API docs
Workflows
Real-world search examples
Search that understands what you mean, not just what you type. Explore with waypoints, focus with filters.