Rapidata job definition
RapidataJobDefinition #
Source code in src/rapidata/rapidata_client/job/rapidata_job_definition.py
preview #
preview() -> RapidataJobDefinition
Will open the browser where you can preview the job definition before giving it to an audience.
Source code in src/rapidata/rapidata_client/job/rapidata_job_definition.py
delete #
Deletes the job definition and all its revisions.
Source code in src/rapidata/rapidata_client/job/rapidata_job_definition.py
update_dataset #
update_dataset(
datapoints: list[str] | list[list[str]],
data_type: Literal["text", "media"] = "media",
contexts: list[str] | None = None,
media_contexts: list[str] | None = None,
sentences: list[str] | None = None,
private_metadata: list[dict[str, str]] | None = None,
) -> RapidataJobDefinition
Update the dataset of the job definition.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
datapoints
|
list[str] | list[list[str]]
|
paths to the datapoints or strings for text datapoints. |
required |
data_type
|
Literal['text', 'media']
|
The type of the datapoints. |
'media'
|