-
Notifications
You must be signed in to change notification settings - Fork 377
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: follow-up fixes for detached
pydantic.BaseModel
schemas (#3829)
# Description This PR contains some bug-fixes and improvements as a follow up for #3784. * `FeedbackDataset` from the Hugging Face Hub fails if exported with an outdated version as it still contained the ID for some columns * Adding records via `add_records` over an existing `FeedbackDataset` in Argilla i.e. a `RemoteFeedbackDataset` fails because the `_fields_schema` is not defined * Shared attribute initialization in `FeedbackDatasetBase`, but move local validation to `FeedbackDataset` * Extend supported type-hints in `generate_pydantic_schema` function * Fix `from_huggingface` to be backwards compatible with previously uploaded `FeedbackDataset` datasets to the Hugging Face Hub (from Argilla v1.8.0) Kudos @frascuchon for detecting and reporting the bugs tackled in this PR! **Type of change** - [X] Bug fix (non-breaking change which fixes an issue) - [X] Improvement (change adding some improvement to an existing functionality) **How Has This Been Tested** - [X] Run `rg.FeedbackDataset.from_huggingface("argilla/oasst_response_quality", split="train")` - [X] Add outdated/deprecated configuration files to check that `DatasetConfig.from_yaml` works as intended - [x] Add integration tests to ensure that adding a record to an existing `FeedbackDataset` in Argilla works as expected **Checklist** - [ ] I added relevant documentation - [X] follows the style guidelines of this project - [X] I did a self-review of my code - [ ] I made corresponding changes to the documentation - [X] My changes generate no new warnings - [x] I have added tests that prove my fix is effective or that my feature works - [ ] I filled out [the contributor form](https://tally.so/r/n9XrxK) (see text above) - [X] I have added relevant notes to the CHANGELOG.md file (See https://keepachangelog.com/) --------- Co-authored-by: Paco Aranda <[email protected]>
- Loading branch information
1 parent
eeaaddc
commit 7243b71
Showing
17 changed files
with
871 additions
and
76 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.