semantic_search
Search code by meaning or keywords using hybrid, semantic, or keyword modes. Returns ranked fragments with exact file, class, method, and line numbers; optionally rerank with Cross-Encoder.
Instructions
Search code by meaning and keywords (hybrid BM25+vectors, semantic, or keyword). Returns ranked code fragments with exact file, class, method, start_line, end_line, and code snippets. Supports optional Cross-Encoder re-ranking (rerank=True).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | hybrid | |
| limit | No | ||
| query | Yes | ||
| rerank | No | ||
| directory_path | No | . |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |