|
11 | 11 | }, |
12 | 12 | { |
13 | 13 | "cell_type": "code", |
14 | | - "execution_count": 1, |
15 | 14 | "metadata": { |
16 | 15 | "ExecuteTime": { |
17 | | - "end_time": "2025-07-06T13:58:57.453098Z", |
18 | | - "start_time": "2025-07-06T13:58:57.059519Z" |
| 16 | + "end_time": "2025-09-23T23:15:49.914432Z", |
| 17 | + "start_time": "2025-09-23T23:15:48.231631Z" |
19 | 18 | } |
20 | 19 | }, |
| 20 | + "source": [ |
| 21 | + "%pip install llamator python-dotenv requests --upgrade --quiet\n", |
| 22 | + "%pip show llamator" |
| 23 | + ], |
21 | 24 | "outputs": [ |
22 | 25 | { |
23 | 26 | "name": "stdout", |
24 | 27 | "output_type": "stream", |
25 | 28 | "text": [ |
| 29 | + "Note: you may need to restart the kernel to use updated packages.\n", |
26 | 30 | "Name: llamator\r\n", |
27 | | - "Version: 3.3.0\r\n", |
| 31 | + "Version: 3.4.0\r\n", |
28 | 32 | "Summary: Framework for testing vulnerabilities of GenAI systems.\r\n", |
29 | 33 | "Home-page: https://github.com/LLAMATOR-Core/llamator\r\n", |
30 | 34 | "Author: Roman Neronov, Timur Nizamov, Nikita Ivanov\r\n", |
|
37 | 41 | ] |
38 | 42 | } |
39 | 43 | ], |
40 | | - "source": [ |
41 | | - "%pip install llamator python-dotenv requests --upgrade --quiet\n", |
42 | | - "%pip show llamator" |
43 | | - ] |
| 44 | + "execution_count": 1 |
44 | 45 | }, |
45 | 46 | { |
46 | 47 | "cell_type": "code", |
47 | | - "execution_count": 1, |
48 | 48 | "metadata": { |
49 | 49 | "ExecuteTime": { |
50 | | - "end_time": "2025-07-15T10:52:14.326798Z", |
51 | | - "start_time": "2025-07-15T10:52:08.534205Z" |
| 50 | + "end_time": "2025-09-23T23:16:02.192727Z", |
| 51 | + "start_time": "2025-09-23T23:15:53.249841Z" |
52 | 52 | } |
53 | 53 | }, |
54 | | - "outputs": [], |
55 | 54 | "source": [ |
56 | 55 | "import llamator" |
57 | | - ] |
| 56 | + ], |
| 57 | + "outputs": [], |
| 58 | + "execution_count": 2 |
58 | 59 | }, |
59 | 60 | { |
60 | 61 | "cell_type": "code", |
61 | | - "execution_count": 3, |
62 | 62 | "metadata": { |
63 | 63 | "ExecuteTime": { |
64 | | - "end_time": "2025-04-05T21:56:28.196836Z", |
65 | | - "start_time": "2025-04-05T21:56:28.195091Z" |
| 64 | + "end_time": "2025-09-23T23:16:02.202719Z", |
| 65 | + "start_time": "2025-09-23T23:16:02.198275Z" |
66 | 66 | } |
67 | 67 | }, |
| 68 | + "source": [ |
| 69 | + "import os\n", |
| 70 | + "from dotenv import load_dotenv\n", |
| 71 | + "\n", |
| 72 | + "load_dotenv(\".env\") # example of environment variables in the .env.example file" |
| 73 | + ], |
68 | 74 | "outputs": [ |
69 | 75 | { |
70 | 76 | "data": { |
|
77 | 83 | "output_type": "execute_result" |
78 | 84 | } |
79 | 85 | ], |
80 | | - "source": [ |
81 | | - "import os\n", |
82 | | - "from dotenv import load_dotenv\n", |
83 | | - "\n", |
84 | | - "load_dotenv(\".env\") # example of environment variables in the .env.example file" |
85 | | - ] |
| 86 | + "execution_count": 3 |
86 | 87 | }, |
87 | 88 | { |
88 | 89 | "cell_type": "markdown", |
|
210 | 211 | }, |
211 | 212 | { |
212 | 213 | "cell_type": "code", |
213 | | - "execution_count": 2, |
214 | 214 | "metadata": { |
215 | 215 | "ExecuteTime": { |
216 | | - "end_time": "2025-07-15T10:52:22.481186Z", |
217 | | - "start_time": "2025-07-15T10:52:22.474697Z" |
| 216 | + "end_time": "2025-09-23T23:16:02.720737Z", |
| 217 | + "start_time": "2025-09-23T23:16:02.716536Z" |
218 | 218 | } |
219 | 219 | }, |
| 220 | + "source": [ |
| 221 | + "llamator.print_test_preset(\"all\")" |
| 222 | + ], |
220 | 223 | "outputs": [ |
221 | 224 | { |
222 | 225 | "name": "stdout", |
|
240 | 243 | " \"num_transformations\": 5,\n", |
241 | 244 | " \"sigma\": 0.4\n", |
242 | 245 | " }),\n", |
| 246 | + " (\"cop\", {\n", |
| 247 | + " \"custom_dataset\": None,\n", |
| 248 | + " \"initial_principles\": None,\n", |
| 249 | + " \"language\": \"any\",\n", |
| 250 | + " \"multistage_depth\": 12,\n", |
| 251 | + " \"num_attempts\": 3,\n", |
| 252 | + " \"principle_library_size\": 12,\n", |
| 253 | + " \"similarity_penalty_threshold\": 0.8,\n", |
| 254 | + " \"similarity_penalty_weight\": 0.2,\n", |
| 255 | + " \"use_similarity_judge\": True\n", |
| 256 | + " }),\n", |
243 | 257 | " (\"crescendo\", {\n", |
244 | 258 | " \"custom_dataset\": None,\n", |
245 | 259 | " \"language\": \"any\",\n", |
|
261 | 275 | " \"multistage_depth\": 20,\n", |
262 | 276 | " \"num_attempts\": 3\n", |
263 | 277 | " }),\n", |
| 278 | + " (\"repetition_token\", { \"num_attempts\": 3, \"repeat_count\": 10 }),\n", |
264 | 279 | " (\"shuffle\", {\n", |
265 | 280 | " \"custom_dataset\": None,\n", |
266 | 281 | " \"language\": \"any\",\n", |
|
296 | 311 | ] |
297 | 312 | } |
298 | 313 | ], |
299 | | - "source": [ |
300 | | - "llamator.print_test_preset(\"all\")" |
301 | | - ] |
| 314 | + "execution_count": 4 |
302 | 315 | }, |
303 | 316 | { |
304 | 317 | "cell_type": "code", |
|
0 commit comments