Git Product home page Git Product logo

libot's Introduction

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. 截图

libot's People

Contributors

xiaopangxia avatar llllxf avatar leatingflower avatar nolongernome avatar witchar avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.