Submit data job

Create a new data job. The job_type field determines the workflow:

  • principle_files — generates a QA pair dataset for instruction fine-tuning
  • context_grounded_files — generates context-grounded training data from uploaded documents
  • context_grounded_vector_db — generates context-grounded training data using an existing vector database

Newly created jobs have no files attached. Use POST /v1/flow/data-jobs/{id}/add-files to attach uploaded file IDs after creation.

For the complete workflow, see Create instruction fine-tuning data or Create context-grounded fine-tuning data.

Body Params
string
required
length between 1 and 255
string
enum
required
Allowed:
length ≥ 1
Responses

Language
Credentials
Header
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json