If you see unfamiliar placeholders or need to check which tools are connected, see
CONNECTORS.md
.
The core intelligence behind enterprise search. Transforms a single natural language question into parallel, source-specific searches and produces ranked, deduplicated results.
The Goal
Turn this:
"What did we decide about the API migration timeline?"
Into targeted searches across every connected source:
When a query is ambiguous, prefer asking one focused clarifying question over guessing:
Ambiguous: "search for the migration"
→ "I found references to a few migrations. Are you looking for:
1. The database migration (Project Phoenix)
2. The cloud migration (AWS → GCP)
3. The email migration (Exchange → O365)"
Only ask for clarification when:
There are genuinely distinct interpretations that would produce very different results
The ambiguity would significantly affect which sources to search
Do NOT ask for clarification when:
The query is clear enough to produce useful results
Minor ambiguity can be resolved by returning results from multiple interpretations
Fallback Strategies
When a source is unavailable or returns no results:
Source unavailable
Skip it, search remaining sources, note the gap
No results from a source
Try broader query terms, remove date filters, try alternate keywords
All sources return nothing
Suggest query modifications to the user
Rate limited
Note the limitation, return results from other sources, suggest retrying later
Query Broadening
If initial queries return too few results:
Original: "PostgreSQL migration Q2 timeline decision"
Broader: "PostgreSQL migration"
Broader: "database migration"
Broadest: "migration"
Remove constraints in this order:
Date filters (search all time)
Source/location filters
Less important keywords
Keep only core entity/topic terms
Parallel Execution
Always execute searches across sources in parallel, never sequentially. The total search time should be roughly equal to the slowest single source, not the sum of all sources.
[User query]
↓ decompose
[~~chat query] [~~email query] [~~cloud storage query] [Wiki query] [~~project tracker query]
↓ ↓ ↓ ↓ ↓
(parallel execution)
↓
[Merge + Rank + Deduplicate]
↓
[Synthesized answer]