POST
/
api
/
v1
/
dataset
/
upload
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>"

Parameters

If you are creating a new dataset your file format would be:

[
  {
    "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)
  }
]

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

multipart/form-data
file
file
required
dataset_name
string
required
space_id
string
required

Response

200
application/json
Successful Response

The response is of type any.