search
Find supporting evidence in the enterprise knowledge base with hybrid keyword and semantic retrieval, returning citable snippets, chunk IDs and section paths so you can judge which documents are worth fetching in full.
Instructions
在企业知识库中做混合检索(词法 + 语义),返回片段级命中。
返回的是引用:chunk_id + 300 字以内的片段 + 小节路径。 片段只用于判断「值不值得展开」,真正的依据要用 fetch 取。
何时用:需要事实、制度、流程、文档原文作为依据。 何时不用:已知 doc_id 且要完整内容 → 用 fetch 或 resource。
空结果或结果被截断时 hint 里有下一步建议,格式为 CODE: 说明。
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | 自然语言问题或关键词。优先用文档里可能出现的原词,不要写长句 | |
| top_k | No | 返回条数上限。schema 硬上限 100;实际还会按服务端 RAG_MAX_TOP_K 收敛,越界不会报错 | |
| doc_type | No | 按文档类型过滤。合法值见 list_sources;不确定就留空 | |
| department | No | 按部门过滤。合法值见 list_sources;不确定就留空 | |
| updated_after | No | YYYY-MM-DD,只保留该日期后更新的文档 |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| hint | No | ||
| hits | Yes | ||
| query | Yes | ||
| total | Yes | ||
| returned | Yes | ||
| truncated | Yes | ||
| config_hash | Yes | ||
| chars_returned | Yes | ||
| corpus_version | Yes | ||
| schema_version | Yes | ||
| filters_applied | Yes | ||
| query_truncated | No | ||
| truncated_reason | No |