search_entities
按关键词搜索实体。
适用于:模糊查找公司/产品名称、批量检索相关实体。
输入 Schema
| 字段 | 类型 | 必填 | 说明 |
|---|---|---|---|
input | ? | ✅ |
用途
按关键词模糊搜索实体(名称 / 描述 / 同义词全文匹配)。在你不确定实体精确名时用,先 search 找到,再用 get_entity_info 看详情。
调用示例
Claude Desktop 中说:"graphforge 里有哪些跟 '库存' 相关的指标?"
JSON-RPC payload:
{
"method": "tools/call",
"params": {
"name": "search_entities",
"arguments": {
"input": "库存"
}
}
}
返回示例
{
"query": "库存",
"results": [
{ "name": "库存周转率", "type": "效率指标", "score": 0.95 },
{ "name": "安全库存", "type": "容量指标", "score": 0.88 },
{ "name": "库存呆滞天数", "type": "效率指标", "score": 0.82 },
{ "name": "库存覆盖天数", "type": "效率指标", "score": 0.78 }
],
"total": 4
}
何时用
- 用户给模糊关键词不是精确实体名
- 想列出某主题下所有相关实体
- 探索图谱里有什么内容
注意
score 是文本相似度,仅供排序参考;不是命中置信度。
结果默认前 10;可重复调用拿更多(暂无 offset)。