Add Rows from HuggingFace

Add rows to an existing dataset by importing from a HuggingFace dataset.

POST https://api.futureagi.com/model-hub/develops/{id}/add_rows_from_huggingface/

Authentication

X-Api-Key API Key Required

Your Future AGI API key used to authenticate requests. You can find and manage your API keys in the Dashboard under Settings.

X-Secret-Key Secret Key Required

Your Future AGI secret key, used alongside the API key for request authentication. This is generated when you create an API key in the Dashboard.

Path parameters

id UUID Required

UUID of the target dataset.

Request body

huggingface_dataset_name string Required

HuggingFace dataset path, e.g. squad or username/dataset-name.

huggingface_dataset_config string Required

Dataset configuration or subset, e.g. plain_text.

huggingface_dataset_split string Required

Data split to import. Common values: train, test, validation.

num_rows integer Optional
Maximum number of rows to import. Defaults to all rows.

Response

200 OK
data object
Import operation details.
message string
Confirmation message.
status string
Status of the API response.

Errors

400 Bad Request Optional
Invalid request parameters.
401 Unauthorized Optional
Invalid or missing API credentials.
404 Not Found Optional
Dataset not found.
429 Too Many Requests Optional
Resource limit reached.
500 Internal Server Error Optional
Unexpected server error.
GET /
Authentication
REQUEST
 
RESPONSE