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.
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 |