Table Q&A response body

更新时间:
复制 MD 格式

Data returned by the Table Q&A service API

Name

Type

Example value

Description

RequestId

String

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

The unique request ID. Use this ID to troubleshoot issues.

Data

String

{
    "bot_id":"f7b2cefc-157e-4a57-9364-9d8fd22500a1",
    "display_data":null,
    "display_strategy":{},
    "error_info":"None",
    "msg":"Request successful",
    "msql":[],
    "question":"What was yesterday's fund code?",
    "related_question":[
    ],
    "response_nlg":"",
    "score":0.8450704225352114,
    "session_id":"",
    "sql":{},
    "sql_data":null,
    "status":200,
    "themes":[]
}
  • msql: The result detected by the model.

  • question: The query statement.

  • score: The score.

  • sql: The parsed SQL object.

The preceding table describes the data returned by the Table Q&A service. For more information about the API, see Table Q&A (General).

Table Q&A service error messages

If an API call to the Table Q&A service returns an error, refer to the following table to identify and resolve the issue.

status

msg

Description

400

IdError, Error Miss parameter bot_id

The bot_id parameter is missing.

400

QuestionError, Error Miss parameter question

The question parameter is missing.

400

ServiceError, Service not configured bot info.

Incomplete bot configuration.

400

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

Fault in table configuration

400

TableIdError The specified table cannot be queried

The specified table cannot be queried.

500

InternalError, Error model internal error.

Failed to connect to the model

500

InternalError, internal error msql to sql error.

SQL object transformation error.

500

InternalError, Error sql to execute sql error.

SQL statement transformation error.

500

InternalError, Error internal error sql service error.

Unknown error.