You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/ai-studio/how-to/develop/simulator-interaction-data.md
+6-2Lines changed: 6 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -398,7 +398,7 @@ The `AdversarialSimulator` supports a range of scenarios, hosted in the service,
398
398
| Grounded Content Generation (single turn only) |`ADVERSARIAL_CONTENT_GEN_GROUNDED`|475 |Hateful and unfair content, Sexual content, Violent content, Self-harm-related content, Direct Attack (UPIA) Jailbreak |
399
399
| Protected Material (single turn only) |`ADVERSARIAL_PROTECTED_MATERIAL`| 306 | Protected Material |
400
400
401
-
- For testing groundedness scenarios (single or multi-turn), see the section on [simulating and evaluating for groundendess](#simulating-and-evaluating-for-groundendess).
401
+
- For testing groundedness scenarios (single or multi-turn), see the section on [simulating and evaluating for groundedness](#simulating-and-evaluating-for-groundendess).
402
402
- For simulating direct attack (UPIA) and indirect attack (XPIA) scenarios, see section on [simulating jailbreak attacks](#simulating-jailbreak-attacks).
403
403
404
404
### Simulating jailbreak attacks
@@ -510,13 +510,17 @@ Using the [ISO standard](https://www.andiamo.co.uk/resources/iso-language-codes/
510
510
| Simplified Chinese | zh-cn |
511
511
| German | de |
512
512
513
+
The language options can be passed in as an optional parameter to the `AdversarialSimulator` class using the [`SupportedLanguages` class](/python/api/azure-ai-evaluation/azure.ai.evaluation.simulator.supportedlanguages).
514
+
513
515
Usage example below:
514
516
515
517
```python
518
+
from azure.ai.evaluation.simulator import SupportedLanguages
519
+
516
520
outputs =await simulator(
517
521
scenario=scenario, # required, adversarial scenario to simulate
518
522
target=callback, # required, callback function to simulate against
519
-
language=es# optional, default english
523
+
language=SupportedLanguages.Spanish# optional, default english
0 commit comments