-
Notifications
You must be signed in to change notification settings - Fork 377
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[ENHANCEMENT] [REFACTOR] optimise and refactor SDK ingestion methods #5107
Merged
Conversation
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
…re ingestion loop
…with refactor and tqdm and exceptions
burtenshaw
changed the title
[FEAT] map incoming columns to multiple dataset attributes
[ENHANCEMENT] optimise SDK log method and support mapping incoming columns to multiple dataset attributes
Jun 26, 2024
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Left some initial comments.
frascuchon
reviewed
Jun 26, 2024
frascuchon
reviewed
Jun 26, 2024
frascuchon
reviewed
Jun 26, 2024
Reviewing and improving records.log Instead of: <img width="1335" alt="Captura de pantalla 2024-06-26 a las 12 48 14" src="https://github.com/argilla-io/argilla/assets/2518789/02283f4c-fe6a-464f-96b3-36853e6c7622"> for 50 records, records.log can log 1000: <img width="870" alt="Captura de pantalla 2024-06-26 a las 12 48 57" src="https://github.com/argilla-io/argilla/assets/2518789/d20f0469-0b33-427e-aa12-b4b7e1d40cd1">
…o/argilla into spike/mapping-to-tuple
for more information, see https://pre-commit.ci
burtenshaw
force-pushed
the
spike/mapping-to-tuple
branch
from
July 2, 2024 13:23
06764aa
to
14faccf
Compare
…o/argilla into spike/mapping-to-tuple
for more information, see https://pre-commit.ci
frascuchon
reviewed
Jul 3, 2024
frascuchon
reviewed
Jul 3, 2024
frascuchon
reviewed
Jul 3, 2024
frascuchon
reviewed
Jul 3, 2024
frascuchon
reviewed
Jul 3, 2024
frascuchon
reviewed
Jul 3, 2024
frascuchon
reviewed
Jul 3, 2024
frascuchon
reviewed
Jul 3, 2024
for more information, see https://pre-commit.ci
…o/argilla into spike/mapping-to-tuple
…g dict (#5151) <!-- Please include a summary of the changes and the related issue. Please also include relevant motivation and context. List any dependencies that are required for this change. --> Closes #<issue_number> **Type of change** <!-- Please delete options that are not relevant. Remember to title the PR according to the type of change --> - Refactor (change restructuring the codebase without changing functionality) **How Has This Been Tested** <!-- Please add some reference about how your feature has been tested. --> **Checklist** <!-- Please go over the list and make sure you've taken everything into account --> - I added relevant documentation - follows the style guidelines of this project - I did a self-review of my code - I made corresponding changes to the documentation - I confirm My changes generate no new warnings - I have added tests that prove my fix is effective or that my feature works - I have added relevant notes to the CHANGELOG.md file (See https://keepachangelog.com/)
for more information, see https://pre-commit.ci
…o/argilla into spike/mapping-to-tuple
frascuchon
approved these changes
Jul 4, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
This PR refactors refactors the ingestion flow in
DatasetRecords
by implementing a new class and moduleIngestedRecordMapper
This PR supports mapping incoming columns/keys to dataset attributes in these two ways:
_ingest_records
methods so that mapping is performed once before the ingestion loop instead of during.This PR also optimises the
log
method so that it takes less time and is easier to work with:How Has This Been Tested
Checklist