cURL
curl --request POST \ --url https://api.collinear.ai/api/v1/dataset/upload \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: multipart/form-data' \ --form 'dataset_name=<string>' \ --form space_id=3c90c3cc-0d44-4b50-8888-8dd25736052a
"<any>"
[ { "conv_prefix": [ { "role": "user", "content": "Hey how are you?" } ], "response": { "role": "assistant", "content": "I'm good, how are you?" }, "ground_truth": <GROUND_TRUTH_VALUE>(optional), "context":<CONTEXT>(Optional) }, { "conv_prefix": [ { "role": "user", "content": "Hey how are you?" } ], "response": { "role": "assistant", "content": "I'm bad, how are you?" }, "ground_truth": <GROUND_TRUTH_VALUE>(optional), "context":<CONTEXT>(Optional) } ]
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
Successful Response
The response is of type any.
any
Was this page helpful?