feat: add dataset split to be used along with row idx when external_id
is not provided on mapping
#5616
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
This PR add the dataset imported split to be used as
external_id
when there is no value forexternal_id
specified on the import mapping.If importing the split
train
for a dataset and noexternal_id
is provided theexternal_id
will be calculated like the following:train_0
: first row oftrain
split.train_1
: second row oftrain
split.With this we are avoiding row duplications when another split is imported to the same dataset. So if later we import the
test
split for the same dataset we will have forexternal_id
:train_0
: first row oftrain
split.train_1
: second row oftrain
split.test_0
: first row oftest
split.test_1
: second row oftest
split.Refs argilla-io/roadmap#21
Type of change
How Has This Been Tested
Checklist