Importing unlabeled data
Request#
Endpoint#
| Part | Value |
|---|---|
| URL | https://api.humanfirst.ai/v1alpha1/files/<NAMESPACE>/<CONVERSATION_SOURCE_ID> |
| Method | POST |
| Body | Multi-part form data |
Note: To find your namespace, see this. To find you conversation source ID, see this.
Request body#
The body is in multi-part form data with the following fields:
| Field | Type | Description |
|---|---|---|
| format | string | The format of the exported data. See Data format |
| file | bytes | The data to import. |
Data format#
| Numeric format | String format | Description |
|---|---|---|
| 1 | IMPORT_FORMAT_SIMPLE_CSV | Simple CSV format |
| 2 | IMPORT_FORMAT_UTTERANCES_TXT | Text file with one utterance per line |
| 4 | IMPORT_FORMAT_HUMANFIRST_JSON | HumanFirst JSON format |
cURL example#
note
In the following example, the hf command line tool is used to fetch a valid access token.
See how to install and configure it here.
To import unlabeled data into a data set using our JSON format, use the following cURL command: