dataset
CustomDataset
Bases: Dataset
A custom dataset class that extends from datasets.Dataset and is used to generate
an Argilla FeedbackDataset instance from the pre-defined configuration within the task
provided to Pipeline.generate.
Source code in src/distilabel/dataset.py
to_argilla()
Converts the dataset to an Argilla FeedbackDataset instance, based on the
task defined in the dataset as part of Pipeline.generate.
Raises:
| Type | Description |
|---|---|
ImportError
|
if the argilla library is not installed. |
ValueError
|
if the task is not set. |
Returns:
| Name | Type | Description |
|---|---|---|
FeedbackDataset |
FeedbackDataset
|
the Argilla |