API Reference
Table question answering
POST
/
v1
/
question-answering
/
table
Table question answering
curl --request POST \
--url https://api.synapsai.cloud/v1/question-answering/table \
--header 'Content-Type: application/json' \
--data '
{
"table": {},
"query": "<string>",
"sequential": false,
"padding": false,
"truncation": false
}
'import requests
url = "https://api.synapsai.cloud/v1/question-answering/table"
payload = {
"table": {},
"query": "<string>",
"sequential": False,
"padding": False,
"truncation": False
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"answer": "<string>",
"coordinates": [
[
123
]
],
"cells": [
"<string>"
],
"aggregator": "<string>"
}Body
application/json
Request to run question-answering against a tabular dataset.
⌘I
Table question answering
curl --request POST \
--url https://api.synapsai.cloud/v1/question-answering/table \
--header 'Content-Type: application/json' \
--data '
{
"table": {},
"query": "<string>",
"sequential": false,
"padding": false,
"truncation": false
}
'import requests
url = "https://api.synapsai.cloud/v1/question-answering/table"
payload = {
"table": {},
"query": "<string>",
"sequential": False,
"padding": False,
"truncation": False
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"answer": "<string>",
"coordinates": [
[
123
]
],
"cells": [
"<string>"
],
"aggregator": "<string>"
}