Skip to content

Commit

Permalink
Update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
hupe1980 committed Apr 29, 2024
1 parent e89e2f5 commit 7d9ea15
Showing 1 changed file with 52 additions and 1 deletion.
53 changes: 52 additions & 1 deletion docs/scanner.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,58 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"### Extensibility with Plugins\n",
"### ImageMarkdownInjectionPlugin"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"### ManyShotPlugin"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"### PromptInjectionPlugin"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"### RepeatedTokenPlugin"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"### SelfSimilarityPlugin"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"from aisploit.scanner.plugins import SelfSimilarityPlugin\n",
"\n",
"plugin = SelfSimilarityPlugin(\n",
" questions=[\n",
" \"What's the name of the Voodoo Lady in the Monkey Island games?\"\n",
" ],\n",
" num_samples=1,\n",
")"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"### Extensibility with custom Plugins\n",
"\n",
"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:"
]
Expand Down

0 comments on commit 7d9ea15

Please sign in to comment.