Skip to content

FEAT: add a fetch function for Aya Red-teaming Dataset - #713

Merged
Roman Lutz (romanlutz) merged 7 commits into
microsoft:mainfrom
paulinek13:feat/aya-redteaming-dataset
Feb 25, 2025
Merged

FEAT: add a fetch function for Aya Red-teaming Dataset#713
Roman Lutz (romanlutz) merged 7 commits into
microsoft:mainfrom
paulinek13:feat/aya-redteaming-dataset

Conversation

@paulinek13

@paulinek13 Paulina Kalicka (paulinek13) commented Feb 14, 2025

Copy link
Copy Markdown
Contributor

Description

This PR aims to close #416 by implementing a fetch function for Aya Red-teaming Dataset with filtering options for language, harm_category, and global_or_local parameters.

I've also added helper functions for handling .jsonl files and updated the test configuration to recognize .jsonl as a valid file type, since the Aya Red-teaming Dataset data is stored in this format.

Tests and Documentation

  • pytest tests/unit && pre-commit run --all-files completes without errors
  • fetch_aya_redteaming_dataset function added to the API reference
  • simple unit testing created for the introduced fetch function

This commit also adds helper functions to work with .jsonl files,
since the Aya Red-teaming dataset is stored in this format.
This update adds support for `.jsonl` (JSON Lines) files, ensuring that
unit tests pass successfully when these files are used.

@romanlutz Roman Lutz (romanlutz) left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This took me an embarrassingly long time to get to, but it's a fantastic contribution. Thank you Paulina Kalicka (@paulinek13)

@romanlutz
Roman Lutz (romanlutz) merged commit 5bbbce7 into microsoft:main Feb 25, 2025
@paulinek13
Paulina Kalicka (paulinek13) deleted the feat/aya-redteaming-dataset branch February 27, 2025 14:59
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.

FEAT Add Aya Red-teaming Dataset

2 participants