Skip to content

Commit 7d9ea15

Browse files
committed
Update docs
1 parent e89e2f5 commit 7d9ea15

File tree

1 file changed

+52
-1
lines changed

1 file changed

+52
-1
lines changed

docs/scanner.ipynb

Lines changed: 52 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,58 @@
4242
"cell_type": "markdown",
4343
"metadata": {},
4444
"source": [
45-
"### Extensibility with Plugins\n",
45+
"### ImageMarkdownInjectionPlugin"
46+
]
47+
},
48+
{
49+
"cell_type": "markdown",
50+
"metadata": {},
51+
"source": [
52+
"### ManyShotPlugin"
53+
]
54+
},
55+
{
56+
"cell_type": "markdown",
57+
"metadata": {},
58+
"source": [
59+
"### PromptInjectionPlugin"
60+
]
61+
},
62+
{
63+
"cell_type": "markdown",
64+
"metadata": {},
65+
"source": [
66+
"### RepeatedTokenPlugin"
67+
]
68+
},
69+
{
70+
"cell_type": "markdown",
71+
"metadata": {},
72+
"source": [
73+
"### SelfSimilarityPlugin"
74+
]
75+
},
76+
{
77+
"cell_type": "code",
78+
"execution_count": null,
79+
"metadata": {},
80+
"outputs": [],
81+
"source": [
82+
"from aisploit.scanner.plugins import SelfSimilarityPlugin\n",
83+
"\n",
84+
"plugin = SelfSimilarityPlugin(\n",
85+
" questions=[\n",
86+
" \"What's the name of the Voodoo Lady in the Monkey Island games?\"\n",
87+
" ],\n",
88+
" num_samples=1,\n",
89+
")"
90+
]
91+
},
92+
{
93+
"cell_type": "markdown",
94+
"metadata": {},
95+
"source": [
96+
"### Extensibility with custom Plugins\n",
4697
"\n",
4798
"The scanner is extensible with plugins, which allow users to add custom scanning capabilities tailored to their requirements. Below is an example of how to create a custom plugin:"
4899
]

0 commit comments

Comments
 (0)