Skip to main content

The Python Risk Identification Tool for LLMs (PyRIT) is a library used to assess the robustness of LLMs

Project description

Python Risk Identification Tool for generative AI (PyRIT)

The Python Risk Identification Tool for generative AI (PyRIT) is an open access automation framework to empower security professionals and ML engineers to red team foundation models and their applications.

Introduction

PyRIT is a library developed by the AI Red Team for researchers and engineers to help them assess the robustness of their LLM endpoints against different harm categories such as fabrication/ungrounded content (e.g., hallucination), misuse (e.g., bias), and prohibited content (e.g., harassment).

PyRIT automates AI Red Teaming tasks to allow operators to focus on more complicated and time-consuming tasks and can also identify security harms such as misuse (e.g., malware generation, jailbreaking), and privacy harms (e.g., identity theft).​

The goal is to allow researchers to have a baseline of how well their model and entire inference pipeline is doing against different harm categories and to be able to compare that baseline to future iterations of their model. This allows them to have empirical data on how well their model is doing today, and detect any degradation of performance based on future improvements.

Additionally, this tool allows researchers to iterate and improve their mitigations against different harms. For example, at Microsoft we are using this tool to iterate on different versions of a product (and its metaprompt) so that we can more effectively protect against prompt injection attacks.

PyRIT architecture

Where can I learn more?

Microsoft Learn has a dedicated page on AI Red Teaming.

Check out our docs for more information on how to install PyRIT, our How to Guide, and more, as well as our demos folder.

Trademarks

This project may contain trademarks or logos for projects, products, or services. Authorized use of Microsoft trademarks or logos is subject to and must follow Microsoft's Trademark & Brand Guidelines. Use of Microsoft trademarks or logos in modified versions of this project must not cause confusion or imply Microsoft sponsorship. Any use of third-party trademarks or logos are subject to those third-party's policies.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pyrit-0.2.0.tar.gz (2.6 MB view details)

Uploaded Source

Built Distribution

pyrit-0.2.0-py3-none-any.whl (249.9 kB view details)

Uploaded Python 3

File details

Details for the file pyrit-0.2.0.tar.gz.

File metadata

  • Download URL: pyrit-0.2.0.tar.gz
  • Upload date:
  • Size: 2.6 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.11.9

File hashes

Hashes for pyrit-0.2.0.tar.gz
Algorithm Hash digest
SHA256 5d5132e6fbffd91b23c18dcb89fb92984e52234cabfaf495b8e7c707b234bce3
MD5 eff619b8b202c612307741194d38d173
BLAKE2b-256 ac556d0c3434b05ab715eaaab15f7383625383953b3eb859ab685cf5f083f811

See more details on using hashes here.

File details

Details for the file pyrit-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: pyrit-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 249.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.11.9

File hashes

Hashes for pyrit-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e43509d665c9fbb7bb60c021922e0467e999018d771a084d2423c12b6596593b
MD5 44b1ccb32cba1d0d52d512c6389577ce
BLAKE2b-256 a60cc535de4877fa5e8ae6737728aa25634107e506da24446a624e01f7d32128

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page