rag_search
Retrieve relevant document chunks from a local knowledge base using hybrid semantic and keyword search. Returns ranked results with source file paths and relevance scores.
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) |