AI Dataset Management

Train Custom Datasets for Search and LLM (Language Model)

Changed on

Train Custom Datasets for Search and LLM (Language Model). You can train your own custom datasets for Search and LLM (Language Model) using this endpoint. You can pass in the Dataset Name, the Dataset Type and the Dataset File and we will train the dataset for you.

post/api/ai/datasets/train-datasets

Request

Request body multi-part/form-data

datasetIdstring

The ID of the Dataset that you want to train. This is optional. If you don't pass a Dataset ID, we will generate a random ID for you. Make sure this is unique. You can pass in a old id if you want to add in more data to your existing Trained Dataset.

dataset_namestring

The Name of the Dataset that you want to train.

dataset_type'self' | 'org'

The Type of the Training Dataset after Saving. It can be either self or org.

json_datastring

The JSON Data that you want to train. You can pass in the JSON Data in the form of a stringified JSON.

training_filestring binary

The Training File that you want to train. You can pass in the Training File in the form of a CSV or a PDF file.

Response

Successful response

statusstring

Status indicating the success of the Dataset Creation Process.

processing_timeinteger

The time taken to process the request, in milliseconds.

processing_idstring

A universally unique identifier for the request. This can be used to track the request in the logs.

processing_countinteger

The number of times the request has been processed. This is what is considered in the Billing Process. This is either the number of times the image is processed or the number of words that the server processes.

Example response

{
  "status": "success",
  "data": {
    "dataset_id": "0109c3db-5968-4704-b99e-84d1b8201319",
    "dataset_name": "sampled ataset",
    "dataset_description": "",
    "training_for": "Self",
    "status": "Training",
    "dataset_timestamp": {
      "_seconds": 1697742460,
      "_clock_hash": 762483
    }
  },
  "processing_time": 5359,
  "processing_id": "9cb58eda-8ff3-417c-a5d0-1b427471a3d4",
  "processing_count": 132
}

Changes