base
          PreferenceTask
  
  
      dataclass
  
¶
  
            Bases: RatingToArgillaMixin, Task
A Task for preference rating tasks.
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  | None | 
Source code in src/distilabel/tasks/preference/base.py
              
          PreferenceTaskNoRationale
  
  
      dataclass
  
¶
  
            Bases: PreferenceTask
A Task for preference rating tasks, that only returns the rating, without the rationale.
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  | None | 
Source code in src/distilabel/tasks/preference/base.py
              
          output_args_names: List[str]
  
  
      property
  
¶
  Returns the names of the output arguments of the task.
          to_argilla_dataset(dataset_row, generations_column='generations', ratings_column='rating', ratings_values=None)
¶
  Same definition from the parent class, but removing the rationale column.
Source code in src/distilabel/tasks/preference/base.py
            
          to_argilla_record(dataset_row, generations_column='generations', ratings_column='rating', ratings_values=None)
¶
  Same definition from the parent class, but removing the rationale column.