search_with_mode
Select a search mode (lexical, semantic, hybrid, summary, or feeling_lucky) to route your query to the appropriate retriever for precise symbol lookup or conceptual search.
Instructions
P03 — named search-mode dispatcher.
Pick a mode to route the query to a specific retriever:
lexicalBM25/FTS5 over symbol names — best when you know the symbol shape.semanticVector-NN over embedded summaries — best for conceptual queries (requires AI provider +embed_repo).hybridReciprocal-rank fusion of lexical + semantic. Degrades to lexical when no AI provider.summaryLexical hits augmented with each symbol's stored summary text — cheap context.feeling_luckyAuto-router: symbol-shape (camelCase/PascalCase/snake_case/FQN) → lexical, everything else → hybrid.
The existing search tool is unchanged; this is an additive surface.
Returns JSON: { mode, items: [{ symbol_id, name, file, line, score, snippet? }], total }.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | Search query | |
| mode | No | Named retriever — defaults to feeling_lucky | |
| limit | No | Max results (default 20) |