Manage API keys
Manage API keys
Get your LastMile API key
- Log in or sign up for free at https://lastmileai.dev diff --git a/api/archive-dataset/index.html b/api/archive-dataset/index.html new file mode 100644 index 00000000..56d387d6 --- /dev/null +++ b/api/archive-dataset/index.html @@ -0,0 +1,28 @@ + + + + + +
- 200
- application/json
- Schema
- Example (from schema)
Array [
]
Array [
]
Clone Dataset
Clone Dataset
+Clone Dataset
Clone Dataset
POST/api/2/auto_eval/dataset/clone
Clone a dataset into a new dataset containing the latest file contents
Request
@@ -26,6 +26,9 @@description stringHuman-readable description of the dataset.
If not provided, will use the name of the dataset being cloned
Human-readable description of the dataset. If not provided, will use the name of the dataset being cloned
The project to add the new dataset to
Responses
Successful operation
Schema
dataset
object
required
A Dataset in the most basic sense: metadata and ownership, but nothing tied -to its data.
The ID of the dataset.
Human-readable name for the dataset, if one exists.
Human-readable description of the dataset, if one exists.
The ID of the user who owns the dataset.
columns
object[]
required
The ID of the dataset file.
Index of the column within the dataset file.
The literal name for the column.
labelState
object
The state of the latest labeling job for the dataset
The status of the latest general pseudo-labeling job for the dataset
aka user general instructions
if the labeling status is error, this field may contain an error message
{
"dataset": {
"id": "string",
"createdAt": "2024-07-29T15:51:28.071Z",
"updatedAt": "2024-07-29T15:51:28.071Z",
"name": "string",
"description": "string",
"ownerUserId": "string",
"numRows": 0,
"numCols": 0,
"initializationStatus": "string",
"initializationError": "string",
"columns": [
{
"id": "string",
"createdAt": "2024-07-29T15:51:28.071Z",
"updatedAt": "2024-07-29T15:51:28.071Z",
"index": 0,
"literalName": "string",
"dtype": "string"
}
],
"labelState": {
"labelingStatus": "string",
"promptTemplate": "string",
"error": "string"
}
}
}
The ID of the dataset.
Human-readable name for the dataset, if one exists.
Human-readable description of the dataset, if one exists.
The ID of the user who owns the dataset.
Possible values: [JOB_STATUS_UNSPECIFIED
, JOB_STATUS_QUEUED
, JOB_STATUS_RUNNING
, JOB_STATUS_COMPLETED
, JOB_STATUS_CANCELLED
, JOB_STATUS_FAILED
]
columns
object[]
required
The ID of the dataset file.
Index of the column within the dataset file.
The literal name for the column.
Datatypes for a column in a dataset file. We likely don't need everything +here, but it's good to be explicit, for example to avoid unknowingly coercing +int64 values into int32. Encoding for text is UTF_8 unless indicated +otherwise.
Possible values: [DATASET_COLUMN_D_TYPE_UNSPECIFIED
, DATASET_COLUMN_D_TYPE_INT32
, DATASET_COLUMN_D_TYPE_INT64
, DATASET_COLUMN_D_TYPE_FLOAT32
, DATASET_COLUMN_D_TYPE_FLOAT64
, DATASET_COLUMN_D_TYPE_STRING
, DATASET_COLUMN_D_TYPE_BYTES
, DATASET_COLUMN_D_TYPE_ANY
]
labelState
object
The state of the latest labeling job for the dataset
The status of the latest general pseudo-labeling job for the dataset
Possible values: [JOB_STATUS_UNSPECIFIED
, JOB_STATUS_QUEUED
, JOB_STATUS_RUNNING
, JOB_STATUS_COMPLETED
, JOB_STATUS_CANCELLED
, JOB_STATUS_FAILED
]
aka user general instructions
if the labeling status is error, this field may contain an error message
{
"dataset": {
"id": "string",
"createdAt": "2024-07-29T15:51:28.071Z",
"updatedAt": "2024-07-29T15:51:28.071Z",
"name": "string",
"description": "string",
"ownerUserId": "string",
"numRows": 0,
"numCols": 0,
"initializationStatus": "JOB_STATUS_UNSPECIFIED",
"initializationError": "string",
"columns": [
{
"id": "string",
"createdAt": "2024-07-29T15:51:28.071Z",
"updatedAt": "2024-07-29T15:51:28.071Z",
"index": 0,
"literalName": "string",
"dtype": "DATASET_COLUMN_D_TYPE_UNSPECIFIED"
}
],
"labelState": {
"labelingStatus": "JOB_STATUS_UNSPECIFIED",
"promptTemplate": "string",
"error": "string"
}
}
}