search_knowledge_base
Retrieve relevant knowledge base snippets by semantic search. Returns text fragments with similarity scores and document titles for answer grounding.
Instructions
语义检索知识库,返回与查询最相关的若干片段(含相似度与所属文档标题)。
何时使用:用户提问涉及具体业务、产品、政策等知识库内容时,先调用本工具拿到
相关片段再作答,并在回答中标注片段来源文档。
参数:
- query(必填):用户原话或主题关键词
- top_k(默认 5):返回片段数,上限 20(超过会被自动钳制)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | ||
| top_k | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |