Jobs APIο
A job is designed to execute a specific task on the Ray cluster. Jobs are created by the backend and are executed on the Ray cluster.
For example, a job may run inference with a model to generate ground truth for a dataset. Or, a job may evaluate the outputs of an inference job against the ground truth stored in the dataset.
Endpointsο
- POST /api/v1/jobs/inference/ο
Create Inference Job
- Status Codes:
201 Created β Successful Response
422 Unprocessable Entity β Validation Error
- POST /api/v1/jobs/annotate/ο
Create Annotation Job
This uses a hardcoded model, that is, Lumigatorβs opinion on what reference model should be used to generate annotations. See more: https://blog.mozilla.ai/lets-build-an-app-for-evaluating-llms/
- Status Codes:
201 Created β Successful Response
422 Unprocessable Entity β Validation Error
- POST /api/v1/jobs/evaluator/ο
Create Evaluation Job
- Status Codes:
201 Created β Successful Response
422 Unprocessable Entity β Validation Error
- GET /api/v1/jobs/ο
List Jobs
Retrieves job data from the Lumigator repository where Ray metadata is also available.
Results are a merged representation which form an augmented view of a βjobβ.
NOTE: Lumigator repository data takes precedence over Ray metadata.
- Query Parameters:
skip (integer)
limit (integer)
job_types (array)
- Status Codes:
200 OK β Successful Response
422 Unprocessable Entity β Validation Error
- GET /api/v1/jobs/{job_id}ο
Get Job
Retrieves merged job data from the Lumigator repository and Ray for a valid UUID.
The result is a merged representation which forms an augmented view of a βjobβ.
NOTE: Lumigator repository data takes precedence over Ray metadata.
- Parameters:
job_id (string)
- Status Codes:
200 OK β Successful Response
422 Unprocessable Entity β Validation Error
- GET /api/v1/jobs/{job_id}/logsο
Get Job Logs
- Parameters:
job_id (string)
- Status Codes:
200 OK β Successful Response
422 Unprocessable Entity β Validation Error
- GET /api/v1/jobs/{job_id}/resultο
Get Job Result
Return job results metadata if available in the DB.
- Parameters:
job_id (string)
- Status Codes:
200 OK β Successful Response
422 Unprocessable Entity β Validation Error
- GET /api/v1/jobs/{job_id}/datasetο
Get Job Dataset
Return the job-associated dataset if available in the DB.
- Parameters:
job_id (string)
- Status Codes:
200 OK β Successful Response
422 Unprocessable Entity β Validation Error
- GET /api/v1/jobs/{job_id}/result/downloadο
Get Job Result Download
Return job results file URL for downloading.
- Parameters:
job_id (string)
- Status Codes:
200 OK β Successful Response
422 Unprocessable Entity β Validation Error