Get a dataset by ID
client.datasets.get(stringdatasetID, RequestOptionsoptions?): Dataset { configured_column_mapping, created_at, dataset_id, 8 more }
GET/api/v1/datasets/{dataset_id}
Get a dataset by ID
import Adaption from 'adaption';
const client = new Adaption({
apiKey: process.env['ADAPTION_API_KEY'], // This is the default and can be omitted
});
const dataset = await client.datasets.get('dataset_id');
console.log(dataset.dataset_id);{
"configured_column_mapping": {
"chat": "chat",
"completion": "completion",
"context": [
"string"
],
"prompt": "prompt"
},
"created_at": "2019-12-27T18:11:19.117Z",
"dataset_id": "dataset_id",
"error": {
"message": "message"
},
"evaluation_summary": {
"grade_after": "grade_after",
"grade_before": "grade_before",
"improvement_percent": 0,
"score_after": 0,
"score_before": 0
},
"name": "name",
"progress": {
"percent": 0,
"processed_rows": 0,
"total_rows": 0
},
"row_count": 0,
"run_id": "run_id",
"status": "pending",
"updated_at": "2019-12-27T18:11:19.117Z"
}Returns Examples
{
"configured_column_mapping": {
"chat": "chat",
"completion": "completion",
"context": [
"string"
],
"prompt": "prompt"
},
"created_at": "2019-12-27T18:11:19.117Z",
"dataset_id": "dataset_id",
"error": {
"message": "message"
},
"evaluation_summary": {
"grade_after": "grade_after",
"grade_before": "grade_before",
"improvement_percent": 0,
"score_after": 0,
"score_before": 0
},
"name": "name",
"progress": {
"percent": 0,
"processed_rows": 0,
"total_rows": 0
},
"row_count": 0,
"run_id": "run_id",
"status": "pending",
"updated_at": "2019-12-27T18:11:19.117Z"
}