-
Notifications
You must be signed in to change notification settings - Fork 35
Open
Description
Hello, there is room for improvement in the extract_content function in your gpt-3.5/eval_utils/openai_policy_gpt4_judge.py file. When the model returns a harmful score followed by a period or other punctuation marks, the following code snippet will also return a score of 1, which has caused significant trouble in my experiment:
if tag == "#thescore:":
if not parts[0].isdigit():
return 1 # default score
else:
return int(parts[0])I made a simple modification to handle this case:
if tag == "#thescore:":
if not parts[0][0].isdigit():
return 1 # default score
else:
return int(parts[0][0])Metadata
Metadata
Assignees
Labels
No labels