-
Notifications
You must be signed in to change notification settings - Fork 920
docs: reorganize table of concepts and getting started page #1360
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 3 commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
b34b54c
docs: Add structure and reorg
mikemckiernan b0921b3
docs: Refactor TOC and start style guidelines
mikemckiernan 2ed4f0c
docs: Simplify the getting started
mikemckiernan 14cff92
docs: Review feedback
mikemckiernan e62cf94
Merge branch 'main' into mmck-docs-groups
leondz 18679cd
Merge branch 'main' into mmck-docs-groups
leondz File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,38 @@ | ||
| # Documentation | ||
|
|
||
| ## Building the Documentation | ||
|
|
||
| 1. Build the documentation: | ||
|
|
||
| ```console | ||
| make -C docs/source doc | ||
| ``` | ||
|
|
||
| The HTML is created in the `docs/source/html` directory. | ||
|
|
||
| ## Style Conventions | ||
|
|
||
| - When to use garak, Garak, and ``garak``? | ||
|
|
||
| - The project is named garak. | ||
| Type it in lowercase and no styling when you refer to the project or the Python package. | ||
| We'll add to this list as more circumstances are discovered. | ||
| This plain-text presentation should be the most frequent use. | ||
|
|
||
| Can you start a sentence with garak? | ||
| Yes. | ||
|
|
||
| Should you? | ||
| Problably not. | ||
| Only start with garak if rephrasing the sentence introduces passive voice or the sentence becomes awkward. | ||
|
|
||
| - The command is ``garak``. | ||
| If the context is to instruct the reader to run the ``garak`` command, then style it as inline code. | ||
|
|
||
| - In a heading, it's Garak with an uppercase G because it's a heading. | ||
|
|
||
| ## Publishing the Documentation | ||
|
|
||
| Tag the commit to publish with `docs-v<semver>`. | ||
|
|
||
| To avoid publishing the documentation as the latest, ensure the commit has `/not-latest` on a single line, tag that commit, and push to GitHub. | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,7 +1,7 @@ | ||
| Welcome to the garak reference documentation | ||
| ============================================ | ||
| Garak Reference Documentation | ||
| ============================= | ||
|
|
||
| **garak** is an LLM vulnerability scanner, `<https://garak.ai>`_. | ||
| Garak is an LLM vulnerability scanner, `<https://garak.ai>`_. | ||
| It uses a huge range of probes to examine and query a large language model, simulating | ||
| attacks, and uses a range of detectors on the model's outputs to see if the model was | ||
| vulnerable to any of those attacks. | ||
|
|
@@ -26,71 +26,51 @@ Check out the :doc:`usage` section for further information, including :ref:`inst | |
| mail `[email protected] <mailto:[email protected]>`_ or drop us a note on `Discord <https://discord.gg/uVch4puUCs>`_. | ||
| Thank you! | ||
|
|
||
| Contents | ||
| -------- | ||
|
|
||
|
|
||
| Using garak | ||
| ^^^^^^^^^^^ | ||
|
|
||
| .. toctree:: | ||
| :caption: Using garak | ||
| :maxdepth: 1 | ||
| :hidden: | ||
|
|
||
| how | ||
| usage | ||
| reporting | ||
| FAQ <https://github.com/NVIDIA/garak/blob/main/FAQ.md> | ||
|
|
||
| Advanced usage | ||
| ^^^^^^^^^^^^^^ | ||
|
|
||
| .. toctree:: | ||
| :maxdepth: 1 | ||
|
|
||
| configurable | ||
| cliref | ||
| reporting | ||
| translation | ||
| ascii_smuggling | ||
|
|
||
| Code reference | ||
| ^^^^^^^^^^^^^^ | ||
| FAQ <https://github.com/NVIDIA/garak/blob/main/FAQ.md> | ||
|
|
||
| .. toctree:: | ||
| :caption: Reference | ||
| :maxdepth: 1 | ||
| :hidden: | ||
|
|
||
| basic | ||
| attempt | ||
| buffs | ||
| cli | ||
| command | ||
| exception | ||
| interactive | ||
| langservice | ||
| payloads | ||
| _config | ||
| _plugins | ||
|
|
||
|
|
||
|
|
||
| Plugin structure | ||
| ^^^^^^^^^^^^^^^^ | ||
|
|
||
| .. toctree:: | ||
| :maxdepth: 1 | ||
|
|
||
| buffs | ||
| detectors | ||
| evaluators | ||
| exception | ||
| generators | ||
| harnesses | ||
| interactive | ||
| langservice | ||
| payloads | ||
| probes | ||
| report | ||
| _config | ||
| _plugins | ||
|
|
||
|
|
||
| Building further | ||
| ^^^^^^^^^^^^^^^^ | ||
|
|
||
| .. toctree:: | ||
| :caption: Extending and Contributing | ||
| :maxdepth: 1 | ||
| :hidden: | ||
|
|
||
| extending | ||
| extending.generator | ||
| extending.probe | ||
| contributing | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,26 @@ | ||
| .. headings: = - ^ " | ||
| Installation | ||
| ============ | ||
|
|
||
| .. _installation: | ||
|
|
||
| garak is a command-line tool. | ||
| It is developed in Linux and MacOS. | ||
|
mikemckiernan marked this conversation as resolved.
Outdated
|
||
|
|
||
| Installing with pip | ||
| --------------------- | ||
|
|
||
| .. code-block:: console | ||
|
|
||
| $ python3 -m pip install garak | ||
|
|
||
|
|
||
| Installing the Development Version | ||
| ---------------------------------- | ||
|
|
||
| The version of garak is updated periodically. | ||
| To install from source in GitHub, run the following command: | ||
|
|
||
| .. code-block:: console | ||
|
|
||
| $ python3 -m pip install -U git+https://github.com/NVIDIA/garak.git@main | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.