Libot后端接口说明
-
请求方式POST
-
请求地址:xxx.xxx.xxx.xxx:8888
-
url参数说明:
-
target=graph_qa,知识库问答
-
target=search_qa,检索式问答
-
target=all, 调用所有现有问答方案
-
-
json请求参数说明:
{
“question”: “问题字符串”
} -
返回json格式说明:
a) Graph_QA:
{ “graph_answer”:”回答字符串” }
b) Search_qa:
{
"search_answer": [
{ "question": "相似问题1", "score": "0.0", "answer": "相似问题1的答案" },
{ "question": "相似问题2", "score": "0.0", "answer": "相似问题2的答案" },
{ "question": "相似问题3", "score": "0.0", "answer": "相似问题3的答案" }
]
}
c) All:
{
"search_answer": [
{
"question": "相似问题1", "score": "0.0", "answer": "相似问题1的答案"
},
{
"question": "相似问题2", "score": "0.0", "answer": "相似问题2的答案"
},
{
"question": "相似问题3",
"score": "0.0",
"answer": "相似问题3的答案"
}
],
“graph_answer”:”回答字符串”
}
6. 截图