search_code
Search an indexed codebase and retrieve top matching definitions using natural-language or keyword queries, with hybrid dense+BM25 and optional reranking for relevance.
Instructions
Search the indexed codebase and return the top matching definitions.
Args: query: natural-language or keyword query. k: number of results. hybrid: True = dense + BM25 fusion; False = dense only. rerank: True = retrieve a wide pool and reorder with a cross-encoder (higher precision, slower; needs the [embeddings] extra).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| k | No | ||
| query | Yes | ||
| hybrid | No | ||
| rerank | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |