Get a dataset by ID
import os
from adaption import Adaption
client = Adaption(
api_key=os.environ.get("ADAPTION_API_KEY"), # This is the default and can be omitted
)
dataset = client.datasets.get(
"dataset_id",
)
print(dataset.dataset_id){
"dataset_id": "dataset_id",
"kind": "augmented",
"source_dataset_id": "550e8400-e29b-41d4-a716-446655440000",
"name": "name",
"status": "pending",
"created_at": "2019-12-27T18:11:19.117Z",
"created_by_user_id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
"updated_at": "2019-12-27T18:11:19.117Z",
"row_count": 0,
"configured_column_mapping": {
"prompt": "prompt",
"completion": "completion",
"chat": "chat",
"context": [
"string"
],
"image": "image"
},
"evaluation_summary": {
"grade_before": "grade_before",
"grade_after": "grade_after",
"score_before": 0,
"score_after": 0,
"improvement_percent": 0
},
"run_id": "run_id",
"progress": {
"percent": 0,
"processed_rows": 0,
"total_rows": 0
},
"error_data": {
"message": "message",
"code": "code",
"level": "error"
},
"image_column_formats": {
"foo": "embedded_bytes"
}
}Returns Examples
{
"dataset_id": "dataset_id",
"kind": "augmented",
"source_dataset_id": "550e8400-e29b-41d4-a716-446655440000",
"name": "name",
"status": "pending",
"created_at": "2019-12-27T18:11:19.117Z",
"created_by_user_id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
"updated_at": "2019-12-27T18:11:19.117Z",
"row_count": 0,
"configured_column_mapping": {
"prompt": "prompt",
"completion": "completion",
"chat": "chat",
"context": [
"string"
],
"image": "image"
},
"evaluation_summary": {
"grade_before": "grade_before",
"grade_after": "grade_after",
"score_before": 0,
"score_after": 0,
"improvement_percent": 0
},
"run_id": "run_id",
"progress": {
"percent": 0,
"processed_rows": 0,
"total_rows": 0
},
"error_data": {
"message": "message",
"code": "code",
"level": "error"
},
"image_column_formats": {
"foo": "embedded_bytes"
}
}