知识图谱智能构建平台
  1. 问答对管理
知识图谱智能构建平台
  • 知识图谱智能构建平台
    • 账号管理
      • 用户登录
      • 用户注册
      • 发送验证码
      • 注销用户
    • 文献管理
      • 上传文献
      • 查询所有文献
      • 查询单个文献详情
      • 修改文献
      • 删除文献
    • 问答对管理
      • 查询问答对
        GET
      • 提问问题
        POST
      • 删除问答对
        POST
      • 修改问答对
        POST
    • 用户权限管理
      • 修改权限
      • 授予管理员权限
      • 删除用户
      • 获取用户列表
      • 获取用户权限
    • 图谱管理
      • 获取三元组数据
      • 获取最新日志
      • 获取全部日志
  1. 问答对管理

提问问题

POST
/answer/getSimilarAnswer

请求参数

Authorization
在 header 添加参数
Authorization
示例:
Authorization: ********************
Body 参数application/x-www-form-urlencoded
question
string 
提问的问题
可选
示例值:
Where did apple origin
publicSearch
string 
必需
示例值:
1

示例代码

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST '/answer/getSimilarAnswer' \
--header 'Authorization;' \
--data-urlencode 'question=Where did apple origin' \
--data-urlencode 'publicSearch=1'

返回响应

🟢200成功
application/json
Body
msg
string 
必需
data
array [object {4}] 
必需
question
string 
必需
answer
string 
必需
title
string 
必需
id
integer 
必需
示例
{
    "msg": "请求成功",
    "data": [
        {
            "question": "When did Jenny die ?",
            "answer": "November",
            "title": "test5",
            "id": 474
        },
        {
            "question": "Who returned as Spect ?",
            "answer": "Thomas Newman",
            "title": "test5",
            "id": 447
        },
        {
            "question": "When did Beyoncé marry ?",
            "answer": "April 4 , 2008",
            "title": "test5",
            "id": 443
        },
        {
            "question": "What is an example of mi statutes ?",
            "answer": "Self prescription of antibiotics",
            "title": "test5",
            "id": 469
        },
        {
            "question": "In what year did the Chopin take place ?",
            "answer": "1842",
            "title": "test5",
            "id": 471
        },
        {
            "question": "In what year did King die ?",
            "answer": "1849",
            "title": "test5",
            "id": 445
        },
        {
            "question": "When did Chopin return to Paris ?",
            "answer": "November",
            "title": "test5",
            "id": 473
        },
        {
            "question": "Who did Kris serve as a correspondent ?",
            "answer": "Kristin Adams",
            "title": "test5",
            "id": 432
        },
        {
            "question": "Who became king of León ?",
            "answer": "García",
            "title": "test5",
            "id": 451
        },
        {
            "question": "What is the oldest method of interior lighting ?",
            "answer": "Daylighting",
            "title": "test5",
            "id": 459
        }
    ]
}
🟢203请求方式错误
修改于 2024-05-18 08:17:36
上一页
查询问答对
下一页
删除问答对
Built with