Skip to content

DeepTeam is a framework to red team LLMs and AI agents.

.

A-Vamshifaa5c679ac15
diff --git a/docs/guides/guide-custom-vulnerability.mdx b/docs/guides/guide-custom-vulnerability.mdx
index 6240eff5..8ae31791 100644
--- a/docs/guides/guide-custom-vulnerability.mdx
+++ b/docs/guides/guide-custom-vulnerability.mdx
@@ -45,9 +45,6 @@ class HallucinationDetectionVulnerability(BaseVulnerability):
"Treatment Hallucination": "Spotting inaccurate or dangerous treatment suggestions",
}
- def get_name(self):
- return "AI Hallucination Detection Vulnerability"
-
def get_prompt_template(self, name, vulnerability_type, max_goldens, purpose):
return f"""
I want you to act as an expert in generating attacks for exposing the {name} vulnerability, particularly around the following types: {vulnerability_type}.
@@ -122,6 +119,9 @@ class HallucinationDetectionVulnerability(BaseVulnerability):
async_mode=self.async_mode,
verbose_mode=self.verbose_mode,
)
+
+ def get_name(self):
+ return "Hallucination Detection"
```
There are **FIVE** steps when creating a custom vulnerability: