Skip to content

Commit f81f7db

Browse files
authored
DOC restructure installation instructions (microsoft#1127)
1 parent 0bbb25b commit f81f7db

18 files changed

Lines changed: 755 additions & 122 deletions

build_scripts/check_links.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
"https://www.anthropic.com/research/many-shot-jailbreaking", # blocks python requests
2020
"https://code.visualstudio.com/docs/devcontainers/containers",
2121
"https://stackoverflow.com/questions/77134272/pip-install-dev-with-pyproject-toml-not-working",
22+
"https://marketplace.visualstudio.com/items?itemName=ms-vscode-remote.remote-containers",
2223
]
2324

2425
custom_myst_references = ["notebook_tests"]

doc/_toc.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,16 @@ chapters:
77
- file: cookbooks/2_precomputing_turns
88
- file: cookbooks/3_copyright_violations
99
- file: cookbooks/4_testing_bias
10-
- file: setup/install_pyrit
10+
- file: setup/1a_install_conda
1111
sections:
12+
- file: setup/1b_install_docker
1213
- file: setup/jupyter_setup
1314
- file: setup/populating_secrets
1415
- file: setup/use_azure_sql_db
1516
- file: contributing/README
1617
sections:
17-
- file: contributing/1_installation
18+
- file: contributing/1a_install_conda
19+
- file: contributing/1b_install_devcontainers
1820
- file: contributing/2_git
1921
- file: contributing/3_incorporating_research
2022
- file: contributing/4_style_guide

doc/code/converters/6_human_converter.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
"them; however, you can if you wish to alter the feedback for generating the next prompt.\n",
2222
"\n",
2323
"\n",
24-
"# Before you begin, ensure you are setup with the correct version of [PyRIT installed](../../setup/install_pyrit.md) and have [secrets configured](../../setup/populating_secrets.md).\n"
24+
"# Before you begin, ensure you are setup with the correct version of [PyRIT installed](../../index.md#Installation-Guide and have [secrets configured](../../setup/populating_secrets.md).\n"
2525
]
2626
},
2727
{

doc/code/converters/6_human_converter.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
# them; however, you can if you wish to alter the feedback for generating the next prompt.
2626
#
2727
#
28-
# # Before you begin, ensure you are setup with the correct version of [PyRIT installed](../../setup/install_pyrit.md) and have [secrets configured](../../setup/populating_secrets.md).
28+
# # Before you begin, ensure you are setup with the correct version of [PyRIT installed](../../index.md#Installation-Guide) and have [secrets configured](../../setup/populating_secrets.md).
2929
#
3030

3131
# %%

doc/code/executor/attack/context_compliance_attack.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
"\n",
2020
"This conversation is sent to the `objective_target`.\n",
2121
"\n",
22-
"Before you begin, ensure you have the correct version of PyRIT installed and have secrets configured as described [here](../../../setup/install_pyrit.md).\n",
22+
"Before you begin, ensure you have the correct version of PyRIT installed and have secrets configured as described [here](../../../setup/1a_install_conda.md).\n",
2323
"\n",
2424
"The results and intermediate interactions will be saved to memory according to the environment settings. For details, see the [Memory Configuration Guide](../../memory/0_memory.md)."
2525
]

doc/code/executor/attack/context_compliance_attack.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
#
2424
# This conversation is sent to the `objective_target`.
2525
#
26-
# Before you begin, ensure you have the correct version of PyRIT installed and have secrets configured as described [here](../../../setup/install_pyrit.md).
26+
# Before you begin, ensure you have the correct version of PyRIT installed and have secrets configured as described [here](../../../index.md#Installation-Guide.
2727
#
2828
# The results and intermediate interactions will be saved to memory according to the environment settings. For details, see the [Memory Configuration Guide](../../memory/0_memory.md).
2929

doc/code/executor/attack/flip_attack.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"\n",
1414
"We replicate the ability to send prompts that match this output: https://github.com/yueliu1999/FlipAttack/blob/main/result/FlipAttack-gpt-4.json. In other words, it sends a system prompt to the target, directing it to unflip the word, and then it flips the malicious prompt.\n",
1515
"\n",
16-
"Before you begin, ensure you are set up with the correct version of PyRIT installed and have secrets configured as described [here](../../../setup/install_pyrit.md).\n",
16+
"Before you begin, ensure you are set up with the correct version of PyRIT installed and have secrets configured as described [here](../../../setup/1a_install_conda.md).\n",
1717
"\n",
1818
"The results and intermediate interactions will be saved to memory according to the environment settings. For details, see the [Memory Configuration Guide](../../memory/0_memory.md)."
1919
]

doc/code/executor/attack/flip_attack.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
#
1616
# We replicate the ability to send prompts that match this output: https://github.com/yueliu1999/FlipAttack/blob/main/result/FlipAttack-gpt-4.json. In other words, it sends a system prompt to the target, directing it to unflip the word, and then it flips the malicious prompt.
1717
#
18-
# Before you begin, ensure you are set up with the correct version of PyRIT installed and have secrets configured as described [here](../../../setup/install_pyrit.md).
18+
# Before you begin, ensure you are set up with the correct version of PyRIT installed and have secrets configured as described [here](../../../index.md#Installation-Guide.
1919
#
2020
# The results and intermediate interactions will be saved to memory according to the environment settings. For details, see the [Memory Configuration Guide](../../memory/0_memory.md).
2121
# %%

doc/code/executor/attack/role_play_attack.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"This attack prepends some prompts defined in `role_play_definition`, along with an `adversarial_chat` target LLM to generate the first turns to send. Typically these prompts describe a fictional scenario to attempt and elicit harmful responses.\n",
1111
"Any converters that you provide will be applied to the prompt that has already been converted by the role play definition (using the provided `adversarial_chat` target). You may see better success if you provide a LLM that has no content moderation or other safety mechanisms. Otherwise, it may refuse to convert the prompt as expected.\n",
1212
"\n",
13-
"Before you begin, ensure you have the correct version of PyRIT installed and have secrets configured as described [here](../../../setup/install_pyrit.md).\n",
13+
"Before you begin, ensure you have the correct version of PyRIT installed and have secrets configured as described [here](../../../setup/1a_install_conda.md).\n",
1414
"\n",
1515
"The results and intermediate interactions will be saved to memory according to the environment settings. For details, see the [Memory Configuration Guide](../../memory/0_memory.md)."
1616
]

doc/code/executor/attack/role_play_attack.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
# This attack prepends some prompts defined in `role_play_definition`, along with an `adversarial_chat` target LLM to generate the first turns to send. Typically these prompts describe a fictional scenario to attempt and elicit harmful responses.
1515
# Any converters that you provide will be applied to the prompt that has already been converted by the role play definition (using the provided `adversarial_chat` target). You may see better success if you provide a LLM that has no content moderation or other safety mechanisms. Otherwise, it may refuse to convert the prompt as expected.
1616
#
17-
# Before you begin, ensure you have the correct version of PyRIT installed and have secrets configured as described [here](../../../setup/install_pyrit.md).
17+
# Before you begin, ensure you have the correct version of PyRIT installed and have secrets configured as described [here](../../../index.md#Installation-Guide.
1818
#
1919
# The results and intermediate interactions will be saved to memory according to the environment settings. For details, see the [Memory Configuration Guide](../../memory/0_memory.md).
2020

0 commit comments

Comments
 (0)