kb_search
Search a personal knowledge base and retrieve relevant text chunks using keyword, semantic, or hybrid retrieval; use hybrid for natural-language questions.
Instructions
Search the knowledge base and return the most relevant text chunks.
:param query: Natural-language question or keywords (Chinese/English). :param top_k: Number of chunks to return (1-30). :param mode: "keyword" (BM25/substring), "semantic" (embeddings), or "hybrid" (both, rank-fused). "hybrid" is recommended.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | hybrid | |
| query | Yes | ||
| top_k | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |