Skip to content

Conversation

mohiuddin-khan-shiam
Copy link

This PR improves the robustness and user experience by:

  1. Audio Module:

    • Added clear error messages when required fields ('path' or 'bytes') are missing in audio encoding
  2. DatasetDict:

    • Enhanced key access error messages to show available splits when an invalid key is accessed
  3. NonMutableDict:

    • Added input validation for the update() method to ensure proper mapping types
  4. Arrow Reader:

    • Improved error messages for small dataset percentage splits with suggestions for alternatives
  5. FaissIndex:

    • Strengthened input validation with descriptive error messages
    • Added proper type checking and shape validation for search queries

These changes make the code more maintainable and user-friendly by providing actionable feedback when issues arise.

This PR improves the robustness and user experience by:

Adding clear error messages for audio encoding when required fields are missing
Enhancing DatasetDict key access with available split suggestions
Validating inputs in NonMutableDict.update()
Improving error messages for small dataset percentage splits
Strengthening FaissIndex input validation with descriptive error messages
These changes make the code more maintainable and user-friendly by providing actionable feedback when issues arise.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant