Datasets
Download dataset
Download one side of a dataset as JSONL, its training or its evaluation rows: those of
version, or of the latest, as you would send them back. The file is named after the
dataset, the version and the side, such as support-tickets-v2-train.jsonl.
GET
/
v1
/
datasets
/
{dataset_id}
/
download
Download dataset
curl --request GET \
--url https://api.sqwish.ai/v1/datasets/{dataset_id}/download \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.sqwish.ai/v1/datasets/{dataset_id}/download"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.sqwish.ai/v1/datasets/{dataset_id}/download', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));"<string>"{
"error": {
"code": "<string>",
"message": "<string>",
"retryable": true,
"request_id": "<string>",
"details": [
{
"path": [
"<string>"
],
"message": "<string>",
"type": "<string>"
}
]
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"retryable": true,
"request_id": "<string>",
"details": [
{
"path": [
"<string>"
],
"message": "<string>",
"type": "<string>"
}
]
}
}Query Parameters
Response
Successful Response
The response is of type file.
Download dataset
curl --request GET \
--url https://api.sqwish.ai/v1/datasets/{dataset_id}/download \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.sqwish.ai/v1/datasets/{dataset_id}/download"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.sqwish.ai/v1/datasets/{dataset_id}/download', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));"<string>"{
"error": {
"code": "<string>",
"message": "<string>",
"retryable": true,
"request_id": "<string>",
"details": [
{
"path": [
"<string>"
],
"message": "<string>",
"type": "<string>"
}
]
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"retryable": true,
"request_id": "<string>",
"details": [
{
"path": [
"<string>"
],
"message": "<string>",
"type": "<string>"
}
]
}
}