Responsible AI (RAI) Audit Kit — evidence-grade audits for responsible, secure, and trustworthy AI systems
Project description
RAI Audit Kit
RAI = Responsible AI. A Python package suite for evidence-grade audits of responsible, secure, and trustworthy AI systems.
Run fairness, data quality, robustness, compliance, image, medical imaging, LLM safety, RAG security, and agent trace checks. Export HTML, Markdown, or JSON reports and gate CI pipelines on risk thresholds.
Author: Sai Teja Erukude | License: MIT
Why this exists
AI teams often run fairness, robustness, RAG, and agent security checks separately. RAI Audit Kit brings them into one evidence and reporting workflow, so teams can review findings consistently, preserve audit artifacts, and apply the same CI gates across model types.
What it looks like
| HTML audit report |
Model card export |
| LLM and RAG audit output |
Agent trace finding |
Packages
| Package | Purpose |
|---|---|
rai-audit-core |
Audit engine, findings, reports, history, CI gates |
rai-audit-ml |
Tabular ML - fairness, drift, data quality, robustness |
rai-audit-dl |
Image, medical imaging, and scientific AI audits |
rai-audit-llm |
LLM and RAG safety, faithfulness, citation, and security audits |
rai-audit-agents |
Agent tool-use, memory, permission, and injection audits |
rai-audit-kit |
Meta-package - installs core + ml, unified CLI |
Install
pip install rai-audit-kit # core + tabular ML
pip install "rai-audit-kit[all]" # all modules (dl, llm, agents)
Quick start
rai-audit ml run --help
For repeatable audit workflows, generate and run a YAML configuration:
rai-audit init --project loan-model
rai-audit run --config audit.yaml
Configured runs write report artifacts and an evidence manifest with input, environment, source-revision, and artifact hashes.
from rai_audit.ml import ClassificationAudit
report = ClassificationAudit(
y_true=y_true,
y_pred=y_pred,
sensitive_features=sensitive_df,
).run()
report.to_html("audit_report.html")
Examples
- Fairness audit walkthrough
- Batch drift monitoring
- MLflow and Airflow templates
- Captured-response LLM and RAG audit suite
- Scientific image robustness audit
- Agent trace with a webpage prompt-injection attempt
Development
pip install uv
uv sync
uv run pytest
See CONTRIBUTING.md for monorepo layout and release workflow.
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file rai_audit_kit-0.1.8.tar.gz.
File metadata
- Download URL: rai_audit_kit-0.1.8.tar.gz
- Upload date:
- Size: 4.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d1ec419f710b1ab8f250481cbb58d583b17322c6ae700ae743cea1f7511c7e16
|
|
| MD5 |
0860690abeb70e8d57ef36ca119810a8
|
|
| BLAKE2b-256 |
21af8de7b2f833649fbec617da4f52d5a64d68ad070e90b84f63345dc86e18f1
|
Provenance
The following attestation bundles were made for rai_audit_kit-0.1.8.tar.gz:
Publisher:
publish.yml on SaiTeja-Erukude/rai-audit
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
rai_audit_kit-0.1.8.tar.gz -
Subject digest:
d1ec419f710b1ab8f250481cbb58d583b17322c6ae700ae743cea1f7511c7e16 - Sigstore transparency entry: 1686249231
- Sigstore integration time:
-
Permalink:
SaiTeja-Erukude/rai-audit@765d806641dfb84532bfe7781e171f85ba80c1c5 -
Branch / Tag:
refs/tags/rai-audit-kit-v0.1.8 - Owner: https://github.com/SaiTeja-Erukude
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@765d806641dfb84532bfe7781e171f85ba80c1c5 -
Trigger Event:
push
-
Statement type:
File details
Details for the file rai_audit_kit-0.1.8-py3-none-any.whl.
File metadata
- Download URL: rai_audit_kit-0.1.8-py3-none-any.whl
- Upload date:
- Size: 5.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5e781033f2b08f440ab3b0921b70941feed1a5b8fdff0943627325ce33c9feff
|
|
| MD5 |
62f907427d75c16daa0ea0de8d9966da
|
|
| BLAKE2b-256 |
87825529be6b35c56d08f8ca4289fde05cbd71de0930fc52d6408540e602f77b
|
Provenance
The following attestation bundles were made for rai_audit_kit-0.1.8-py3-none-any.whl:
Publisher:
publish.yml on SaiTeja-Erukude/rai-audit
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
rai_audit_kit-0.1.8-py3-none-any.whl -
Subject digest:
5e781033f2b08f440ab3b0921b70941feed1a5b8fdff0943627325ce33c9feff - Sigstore transparency entry: 1686249351
- Sigstore integration time:
-
Permalink:
SaiTeja-Erukude/rai-audit@765d806641dfb84532bfe7781e171f85ba80c1c5 -
Branch / Tag:
refs/tags/rai-audit-kit-v0.1.8 - Owner: https://github.com/SaiTeja-Erukude
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@765d806641dfb84532bfe7781e171f85ba80c1c5 -
Trigger Event:
push
-
Statement type: