Conversation
|
@microsoft-github-policy-service agree |
romanlutz
left a comment
There was a problem hiding this comment.
Please also look at api.rst (I think that's the name) because it should list this dataset along with the others from the datasets module. There may be some missing there, so if you want you can compare and fill in the gaps. Thank you!
pyrit/datasets/cbt_bench_dataset.py
Outdated
There was a problem hiding this comment.
This should tell us about the other options and the type should be Literal[...] with the individual options listed.
pyrit/datasets/cbt_bench_dataset.py
Outdated
There was a problem hiding this comment.
Would these overlap between the datasets (based on config value)? If so we need to distinguish
pyrit/datasets/cbt_bench_dataset.py
Outdated
There was a problem hiding this comment.
What are the values for this? I just want to make sure they make sense as harm categories
There was a problem hiding this comment.
@romanlutz you can see them here FYI
But they look like this:
[
"I am powerless, weak, vulnerable",
"I am needy",
"I am out of control"
]
I am not certain if they exactly align with our harm categories
There was a problem hiding this comment.
These ones certainly don't.
There was a problem hiding this comment.
I would say these broadly fall under psycho-social harms. @jbolor21 was that what you thought when you added the item?
There was a problem hiding this comment.
Yes! I was thinking broadly under psycho-social harms!
There was a problem hiding this comment.
The labels they have are very specific to CBT and not quite aligned with our categories so just lumping them under psycho-social harms would probably make the most sense!
Co-authored-by: Roman Lutz <romanlutz13@gmail.com>
|
|
||
| seed_prompts = [ | ||
| SeedPrompt( | ||
| value=item["situation"], # Use 'situation' as the main prompt text |
There was a problem hiding this comment.
After looking at the dataset, I would say the situation + thoughts together should be the prompt. Let's ask @jbolor21 who suggested adding the dataset to chime in 🙂
There was a problem hiding this comment.
Yes I think adding the thoughts is important to the situation since these two are what are extracted from the original text!
|
@sravan0446 are you still interested in addressing the issues? 🙂 |
|
closing in favor of #1411 |
CBT-Bench Dataset Integration for PyRIT
This pull request introduces support for the CBT-Bench dataset in PyRIT. The CBT-Bench dataset is a benchmark designed to evaluate the alignment and therapeutic safety of Large Language Models (LLMs) in the context of Cognitive Behavioral Therapy (CBT). By integrating this dataset, PyRIT can analyze psychotherapy-related prompts and identify potential risks, including cognitive distortions, harmful self-beliefs, and other vulnerabilities.
Key Changes
fetch_cbt_bench_datasetto fetch and process the dataset.situation,core_belief_fine_grained) to PyRIT'sSeedPromptmodel.core_fine_seed) with support for other configurations.Related Issue
Closes: #865
Tagging @romanlutz for review.
Tests and Documentation
References
Citation