search_code
Embed a query, retrieve code chunks from a vector index, and rerank them using a cross-encoder to return the most relevant results for your workspace.
Instructions
Embeds the search query using FastEmbed, retrieves candidate chunks from Turbovec vector index,
reranks them using Cross-Encoder, and returns top_k matching code/memory chunks (default top_k=3).
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"workspace_id": "<workspace_id>",
"query": "<query>"
},
"name": "search_code"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | ||
| top_k | No | ||
| workspace_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |