Skip to content
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

FEAT: Refusal Scorer #371

Merged
merged 6 commits into from
Sep 17, 2024

Conversation

rlundeen2
Copy link
Contributor

Description

  • Adds/generalizes a refusal scorer, which is good at predicting whether or not the response is a refusal
  • Updates Crescendo to use the refusal scorer
  • Generalizes send_chat_target_async and LLM scorer responses for more maintainable retrying logic
  • Adds a retry to LLM scoring if it's expecting a float for a value and the float doesn't parse
  • Standardizes timestamp parameter on score (sometimes it was date_time but this is more consistent with other tables)

Tests and Documentation

  • Tests for refusal added
  • Crescendo and scorer notebooks run

pyrit/datasets/score/refusal.yaml Show resolved Hide resolved
pyrit/score/scorer.py Outdated Show resolved Hide resolved
pyrit/score/scorer.py Outdated Show resolved Hide resolved
pyrit/score/scorer.py Show resolved Hide resolved
pyrit/score/self_ask_true_false_scorer.py Outdated Show resolved Hide resolved
@rlundeen2 rlundeen2 merged commit 2144c62 into Azure:main Sep 17, 2024
5 checks passed
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.

2 participants