Skip to content

Commit

Permalink
update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
HowieHwong committed Jan 25, 2024
1 parent 53ab741 commit e0c8945
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/guides/evaluation.md
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ Toxicity evaluation:
# If you have not saved evaluated jailbreak results
jailbreak_data = file_process.load_json('jailbreak_data_json_path')
eval_data, _ = evaluator.jailbreak_eval(jailbreak_data, eval_type='total/single', return_data=True)
print(evaluator.toxicity_eval(eval_data, perspective_api=config.perspective_key))
print(evaluator.toxicity_eval(eval_data))

# If you have saved evaluated jailbreak results
toxicity_data = file_process.load_json('evaluated_jailbreak_results_json_path') # load eval data for toxicity evaluation
Expand Down

0 comments on commit e0c8945

Please sign in to comment.