RAG Retrieve
rag_retrieveRetrieve relevant code snippets for a question using local BM25 ranking, returning full code windows with line numbers for grounded answers. Works entirely on your machine.
Instructions
Retrieve the most relevant code chunks for a question using local BM25 ranking. No embeddings, no API calls, no data leaves the machine. Returns full code windows with line numbers so answers are grounded in real code.
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": {
"path": "<path>",
"query": "<query>"
},
"name": "rag_retrieve"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Absolute path to the repository root | |
| topK | No | ||
| query | Yes | What you want to find — natural language or symbol names |