Skip to content

Add Toxicity Evaluation #241

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

Merged
merged 13 commits into from
Mar 12, 2025

Conversation

daniel-de-leon-user293
Copy link
Contributor

@daniel-de-leon-user293 daniel-de-leon-user293 commented Feb 27, 2025

Description

This PR adds a workflow to evaluate how well an LLM can detect toxic language. Review Issue 235 for more detail.

Issues

#235

Type of change

List the type of change like below. Please delete options that are not relevant.

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds new functionality)
  • Breaking change (fix or feature that would break existing design and interface)

Dependencies

Development and tools:

  • python ">=3.9, <3.11"
  • docker

Deployment:

  • evaluate
  • loguru
  • pandas
  • scikit-learn
  • torch
  • torchmetrics
  • transformers
  • accelerate

Tests

Unittests located here: https://github.com/daniel-de-leon-user293/GenAIEval/blob/daniel/toxicity-eval/tests/test_toxicity_eval.py

Signed-off-by: Daniel Deleon <[email protected]>
Signed-off-by: Daniel Deleon <[email protected]>
Signed-off-by: Daniel Deleon <[email protected]>
@joshuayao joshuayao linked an issue Feb 28, 2025 that may be closed by this pull request
2 tasks
@daniel-de-leon-user293 daniel-de-leon-user293 marked this pull request as ready for review March 7, 2025 00:32
Signed-off-by: Daniel Deleon <[email protected]>
@daniel-de-leon-user293
Copy link
Contributor Author

pre-commit.ci failure is incorrectly failing due to an acronym spelling.

Signed-off-by: Daniel Deleon <[email protected]>
@ashahba ashahba removed the WIP label Mar 7, 2025
@ashahba ashahba changed the title Add Toxicity Evaluation (WIP) Add Toxicity Evaluation Mar 7, 2025
@ashahba ashahba added this to the v1.3 milestone Mar 7, 2025
Signed-off-by: Daniel Deleon <[email protected]>
Copy link
Collaborator

@ashahba ashahba left a comment

Choose a reason for hiding this comment

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

LGTM!

@qgao007 qgao007 self-requested a review March 7, 2025 23:46
Copy link
Collaborator

@qgao007 qgao007 left a comment

Choose a reason for hiding this comment

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

LGTM!

@chensuyue chensuyue mentioned this pull request Mar 12, 2025
3 tasks
@ashahba ashahba merged commit c5657c3 into opea-project:main Mar 12, 2025
10 of 11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Feature] Toxicity Detection Evaluation
3 participants