POST
/
api
/
ai
/
train-data
curl --request POST \
  --url https://api.worqhat.com/api/ai/train-data \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: multipart/form-data' \
  --form 'files=/path/to/Pitch Deck July 2024.pdf' \
  --form type=search \
  --form modelType=v3 \
  --form 'name=Some name' \
  --form 'modelId=sample id'
{
  "processing_time": 888,
  "processing_id": "4b139bfe-1f71-4345-b539-fa6c1700f166",
  "processing_count": 3,
  "data": "The AI model training process has been successfully initiated."
}

Authorizations

Authorization
string
header
required

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

Body

multipart/form-data
files
file
required

The file to be used for training the model.

type
enum<string>
required

The type of model training.

Available options:
search,
content
modelType
enum<string>
required

The version of the model to be trained.

Available options:
v2,
v3
name
string
required

The name of the model to identify it later.

modelId
string

Custom model ID for retraining an existing model.

Response

200
application/json
Successful response
processing_time
integer
required

The amount of time in miliseconds it took to complete the request.

processing_id
string
required

A unique identifier for the server process. This helps us track support requests and complaints.

processing_count
integer
required

Usage statistics for the request. This is what is used for the billing.

data
string

Model training results.