base
Task
Bases: ABC
Abstract class used to define the methods required to create a Task
, to be used
within an LLM
.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
system_prompt |
str
|
the system prompt to be used for generation. |
required |
task_description |
Union[str, None]
|
the description of the task. Defaults to |
required |
Raises:
Type | Description |
---|---|
ValueError
|
if the |
Source code in src/distilabel/tasks/base.py
validate_dataset(columns_in_dataset)
Validates that the dataset contains the required columns for the task.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
columns_in_dataset |
List[str]
|
the columns in the dataset. |
required |
Raises:
Type | Description |
---|---|
KeyError
|
if the dataset does not contain the required columns. |