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.
Table represented as a dict mapping column names to lists of strings (or a DataFrame equivalent). Required.
Show child attributes
Show child attributes
Query string(s) to run against the table. Required.
If true, run queries sequentially rather than batching (required for some models).
Controls padding behavior; accepts booleans or mode strings such as 'longest'.
Controls truncation behavior; accepts booleans or mode strings such as 'drop_rows_to_fit'.
⌘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>"
}