Skip to content

Commit 431af59

Browse files
Merge pull request #487 from nagkumar91/main
Update simulator-interaction-data.md
2 parents 92a1cd3 + 823e69d commit 431af59

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

articles/ai-studio/how-to/develop/simulator-interaction-data.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ Azure AI Evaluation SDK's `Simulator` provides an end-to-end synthetic data gene
4242
By automating the creation of synthetic data, the `Simulator` class helps streamline the development and testing processes, ensuring your applications are robust and reliable.
4343

4444
```python
45-
from azure.ai.evaluation.synthetic import Simulator
45+
from azure.ai.evaluation.simulator import Simulator
4646
```
4747

4848
### Generate text or index-based synthetic data as input
@@ -215,7 +215,7 @@ print(json.dumps(outputs, indent=2))
215215
Augment and accelerate your red-teaming operation by using Azure AI Studio safety evaluations to generate an adversarial dataset against your application. We provide adversarial scenarios along with configured access to a service-side Azure OpenAI GPT-4 model with safety behaviors turned off to enable the adversarial simulation.
216216

217217
```python
218-
from azure.ai.evaluation.synthetic import AdversarialSimulator
218+
from azure.ai.evaluation.simulator import AdversarialSimulator
219219
```
220220

221221
The adversarial simulator works by setting up a service-hosted GPT large language model to simulate an adversarial user and interact with your application. An AI Studio project is required to run the adversarial simulator:
@@ -272,7 +272,7 @@ async def callback(
272272
## Run an adversarial simulation
273273

274274
```python
275-
from azure.ai.evaluation.synthetic import AdversarialScenario
275+
from azure.ai.evaluation.simulator import AdversarialScenario
276276

277277
scenario = AdversarialScenario.ADVERSARIAL_QA
278278
adversarial_simulator = AdversarialSimulator(azure_ai_project=azure_ai_project)

0 commit comments

Comments
 (0)