文档

表格问答(通用)

表格问答(高级版-通用领域)

调用须知

  • 该服务为高级版的能力,需要开通高级版才能免费调用。点击这里确认开通状态:点击确认开通

  • 该服务所需bot_id参数需要先调用"使用服务id查询服务信息接口"查询到。该接口API文档点击跳转查看:使用服务ID查询服务信息

  • 支持领域:通用领域

  • 能力说明:TableQA是基于业务表格的低成本构建对话机器⼈的问答引擎

请求参数

名称

类型

是否必选

示例值

描述

Action

String

RequestTableQAOnline

系统规定参数,取值:RequestTableQAOnline

ServiceCode

String

alinlp

固定值,只支持alinlp

Params

String

{"bot_id":"5e7ff849-d411-47f6-a0a2-ab6186eb4893","question":"昨天的基金代码是什么?"}

  • bot_id:机器人id,

  • question:要询问的问题。

返回数据

名称

类型

示例值

描述

RequestId

String

D85FE2F3-C75C-130C-9FCE-2BC502E2D210

唯一请求id,排查问题的依据

Data

String

{
    "bot_id":"f7b2cefc-157e-4a57-9364-9d8fd22500a1",
    "display_data":null,
    "display_strategy":{},
    "error_info":"None",
    "msg":"请求成功",
    "msql":[],
    "question":"昨天的基金代码是什么?",
    "related_question":[
    ],
    "response_nlg":"",
    "score":0.8450704225352114,
    "session_id":"",
    "sql":{},
    "sql_data":null,
    "status":200,
    "themes":[]
}
  • msql:模型识别到的结果

  • question:问句

  • score:得分

  • sql:解析后的sql对象

调用接入

  1. 代码接入请参考:快速入门

表格问答服务错误信息

调用过程中,表格问题服务返回的错误信息可对照下表,参考描述解决问题。

status

msg

描述

400

IdError, Error Miss parameter bot_id

bot_id未传

400

QuestionError, Error Miss parameter question

question未传

400

ServiceError, Service not configured bot info.

bot 配置不全

400

TableError, Error Table not configured in this service or linking not find

表格配置错误

400

TableIdError The specified table cannot be queried

指定表格查询错误

500

InternalError, Error model internal error.

模型连接错误

500

InternalError, internal error msql to sql error.

sql对象转换错误

500

InternalError, Error sql to execute sql error.

sql语句转换错误

500

InternalError, Error internal error sql service error.

未知错误

错误码

调用过程中如果出现错误可对照下表,查看对应描述,描述中包含具体错误原因和解决方案

HttpCode

错误码

错误信息

描述

400

UserStatusInvalid

The user status is invalid.

用户状态无效,请检查账户是否欠费和有未支付的账单

400

BasicServiceNotActivated

The NLP API (Version : base) service has not been activated. Please click the url to confirm the activation status:https://common-buy.aliyun.com/?commodityCode=nlp_alinlpBasePost_public_cn#/buy

NLP API(基础版)服务未开通,请点击链接确认开通状态:https://common-buy.aliyun.com/?commodityCode=nlp_alinlpBasePost_public_cn#/buy

400

AdvancedServiceNotActivated

The NLP API (Version : advanced) service has not been activated. Please click the url to confirm the activation status:https://common-buy.aliyun.com/?commodityCode=nlp_alinlpAdvancedPost_public_cn#/buy

NLP API(高级版)服务未开通,请点击链接确认开通状态:https://common-buy.aliyun.com/?commodityCode=nlp_alinlpAdvancedPost_public_cn#/buy

400

IndustryServiceNotActivated

The NLP API (Version : industry) service has not been activated. Please click the url to confirm the activation status:https://common-buy.aliyun.com/?commodityCode=nlp_alinlpIndustryPost_public_cn#/buy

NLP API(行业应用版)服务未开通,请点击链接确认开通状态:https://common-buy.aliyun.com/?commodityCode=nlp_alinlpIndustryPost_public_cn#/buy

401

InvalidParameter

The parameter is invalid.

参数无效,请检查入参

403

Forbidden.NoAuth

You are not authorized to operate on the specified resource. Please click the URL for help information:https://help.aliyun.com/document_detail/177209.html

您的账号无权限操作指定的资源,请点击URL以获取帮助信息:https://help.aliyun.com/document_detail/177209.html

405

TextLimitExceeded

The maximum length of the text is exceeded.

文本长度超过限制

406

TextCodingError

An encoding error occurred to the input text.

输入文本编码错误

410

FrameworkError

Framework internal server error.

框架错误

411

FrameworkApiError

Framework API error.

框架API错误

412

FrameworkFormatError

Framework request format error.

框架请求格式错误

413

FrameworkReturnError

Framework return type format error.

框架返回格式错误

429

Throttling.User

Flow control has been triggered.

超过了每秒最大查询数(QPS),请单击URL以获取帮助信息:https://help.aliyun.com/document_detail/69780.html#p-wq5-zb9-5wu

500

InternalError

A server error occurred while processing your request. Please try again later or contact customer support.

处理您的请求时发生服务错误,请稍后再试或联系客户支持。

访问错误中心查看更多错误码。

  • 本页导读 (0)
文档反馈