Skip to content

Commit

Permalink
minor changes
Browse files Browse the repository at this point in the history
  • Loading branch information
kritinv committed Oct 7, 2024
1 parent cf934e1 commit ae4da95
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion deepeval/red_teaming/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ class AttackEnhancement(Enum):
GRAY_BOX_ATTACK = "Gray Box Attack"
PROMPT_INJECTION = "Prompt Injection"
PROMPT_PROBING = "Prompt Probing"
JAILBREAKING = "Jailbreaking"
JAILBREAK_LINEAR = "Linear Jailbreak"
JAILBREAK_TREE = "Tree Jailbreak"
ROT13 = "ROT13 Encoding"
Expand Down
2 changes: 1 addition & 1 deletion docs/docs/evaluation-red-teaming.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ print("Vulnerability Scores: ", results)
There are 2 required parameters and 2 optional parameters when calling the scan method inside `RedTeamer`:

- `target_model`: a [custom LLM model](guides-using-custom-llms) of type `DeepEvalBaseLLM` representing the model you wish to scan.
- `attacks_per_vulnerability`: An integer specifying the number of adversarial attacks to be generated per vulnerability.
- `attacks_per_vulnerability`: An integer specifying the maximum number of adversarial attacks to be generated per vulnerability.
- [Optional] `vulnerabilities`: A list of `Vulnerability` enums specifying the vulnerabilities to be tested. Defaulted to all available `Vulnerability`.
- [Optional] `attack_enhancements`: A dict of `AttackEnhancement` enum keys specifying the distribution of AttackEnhancements to be used. Defaulted to uniform distribution of all available `AttackEnhancements`.

Expand Down

0 comments on commit ae4da95

Please sign in to comment.