semantic_search
Search indexed source and documentation using hybrid lexical and vector retrieval, with support for git history, paper trail, and call graphs.
Instructions
Search indexed source and docs. score is a blended relevance score combining BM25 lexical rank and (when an embedding model is installed) vector cosine similarity; pass explain=true for the per-component breakdown. Each hit carries retrieval_mode ('lexical', 'vector', or 'hybrid') so you can tell whether embeddings contributed without explain. Hits are validated against current source. Falls back to BM25-only (every hit 'lexical') when no embedding model is present.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | ||
| query | Yes | ||
| explain | No | ||
| include | No | What to include: `git`, `papertrail` (both on by default), `generated`, `fallback` (off by default). Omit to keep defaults; an explicit list is the exact on-set. | |
| worktree | No | Absolute path to a linked git worktree you're working in. When set, results are served from that worktree's branch overlay (its committed + uncommitted changes) on top of the indexed checkout; omit to query the indexed checkout. An unrelated/invalid path falls back to it. | |
| graph_limit | No | ||
| include_graph | No | compact |