Query 联想推荐
更新时间:2024-11-04
1、接口地址:POST {IP}:{PORT}/core/v3/search/suggest
2、说明:根据问法给出联想推荐;使用BOT的token。
3、入参(放到body中)
参数名 | 类型 | 是否可空 | 备注 |
---|---|---|---|
agentId | string | 否 | |
queryText | string | 否 | |
botIds | list | 否 | botId 列表 |
types | list | 否 | 类型 1:实体,2:意图示例,3:问答标准问,4:问答相似问 |
4、返回值
参数名 | 类型 | 父节点 | 备注 |
---|---|---|---|
code | int | HTTP状态码 | |
time | long | 时间 | |
msg | string | 状态信息 | |
data | T | 返回数据 | |
list | list<map<string, object>> |
data | |
type | string | list | 类型 1:实体,2:意图示例,3:问答标准问,4:问答相似问 |
text | string | list | 文本 |
示例:
JSON
1{
2 "time":111111,
3 "code":200,
4 "msg":"错误信息",
5 "data":{
6 "list":[
7 {
8 "text":"推荐词1",
9 "type":"1,2,3"
10 },
11 {
12 "text":"推荐词2",
13 "type":"2"
14 }
15 ]
16 }
17}