Skip to content

xiaopangxia/libot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 

Repository files navigation

Libot,A robot for library QA.

图书馆智能咨询机器人

Libot后端接口说明

  1. 请求方式POST

  2. 请求地址:xxx.xxx.xxx.xxx:8888

  3. url参数说明:

    1. target=graph_qa,知识库问答

    2. target=search_qa,检索式问答

    3. target=all, 调用所有现有问答方案

  4. json请求参数说明:
     {
      “question”: “问题字符串”
     }

  5. 返回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. 截图

About

A robot for library QA.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published