rag_search
Search a local knowledge base with hybrid dense and keyword retrieval to find relevant document chunks. Returns ranked results with source paths and scores, enabling answers grounded in your documents.
Instructions
Search the local knowledge base using hybrid retrieval (dense MiniLM embeddings + BM25 keyword matching, fused via Reciprocal Rank Fusion). Returns up to top_k ranked chunks with source file paths, chunk indices, and relevance scores. Read-only: never modifies the index. If results are empty, call rag_index first to populate the knowledge base. Prefer this over rag_status when answering a user's question about their documents.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | The natural-language question or keywords to search for. | |
| top_k | No | Max results to return (default 5, max 25) |