argilla
argilla copied to clipboard
[ENHANCEMENT] Make mapping function in DatasetRecords.log compatible with multiple attributes
What
It is not possible to use the mapping
parameter in the log
method to assign one column of the incoming dataset to multiple Argilla attributes.
why
This impacts text generation datasets where the annotator is given a TextQuestion
and asked to correct one of the fields. I.e. a prompt or response.
how
The problem is caused by the fact that we use a dictionary to define the mapping. This could be remedied by reversing the dictionary.
what now
You can get round this by: 1. renaming the columns in the dataset 👎 2. iterating over the dataset and defining rg.Record
.