Skip to content

Commit

Permalink
Add explanation to is_unhelpful_response question
Browse files Browse the repository at this point in the history
  • Loading branch information
elisno committed Feb 8, 2025
1 parent 38666de commit a5d655b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/cleanlab_codex/validation.py
Original file line number Diff line number Diff line change
Expand Up @@ -196,10 +196,11 @@ def is_unhelpful_response(
# - When asking "is helpful?" -> "no" means unhelpful
# - When asking "is unhelpful?" -> "yes" means unhelpful
question = (
"Is the AI Assistant Response unhelpful? "
"Unhelpful responses include answers that:\n"
"Does the AI Assistant Response seem unhelpful? "
"Things that are not helpful include answers that:\n"
"- Are not useful, incomplete, incorrect, uncertain or unclear.\n"
"- Abstain or refuse to answer the question\n"
"- Statements which are similar to 'I don't know', 'Sorry', or 'No information available'.\n"
"- Leave the original question unresolved\n"
"- Are irrelevant to the question\n"
"Answer Yes/No only."
Expand Down

0 comments on commit a5d655b

Please sign in to comment.