Skip to main content

LLM and RAG audits including safety, security, hallucination, and citation checks

Project description

rai-audit-llm

LLM and RAG audits for prompt injection, unsafe output, toxicity, faithfulness, citations, and retrieval security.

CLI

Audit captured responses from a YAML suite:

rai-audit llm run --suite packages/rai-audit-llm/examples/llm_audit_suite.yml --format html

Use --audit-type rag to run only RAG checks or --audit-type rag-security to scan only retrieval security cases.

Python API

from rai_audit.llm import LLMAudit, load_test_suite

suite = load_test_suite("packages/rai-audit-llm/examples/llm_audit_suite.yml")
report = LLMAudit(suite, persist=False).run()

For live evaluation, pass responder=lambda case: .... RAG faithfulness checks require an LLM-as-judge verdict: provide judge_result in captured YAML or pass faithfulness_judge=lambda case, response: {"score": 0.9, "reasoning": "..."}.

All findings include OWASP LLM Top 10 2025 references where applicable.

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

rai_audit_llm-0.1.7.tar.gz (11.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

rai_audit_llm-0.1.7-py3-none-any.whl (12.7 kB view details)

Uploaded Python 3

File details

Details for the file rai_audit_llm-0.1.7.tar.gz.

File metadata

  • Download URL: rai_audit_llm-0.1.7.tar.gz
  • Upload date:
  • Size: 11.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for rai_audit_llm-0.1.7.tar.gz
Algorithm Hash digest
SHA256 8b00a3f5345a7c0cd5c217b8eaed0c56943c293aa5067f0a4c8c80d9e9f44e82
MD5 25fd7ac1a56b883878586459a956414e
BLAKE2b-256 ea19186f7538c3c01379cebbe50a2a93496b88f93513bbe299dc636506c317d8

See more details on using hashes here.

Provenance

The following attestation bundles were made for rai_audit_llm-0.1.7.tar.gz:

Publisher: publish.yml on SaiTeja-Erukude/rai-audit

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file rai_audit_llm-0.1.7-py3-none-any.whl.

File metadata

  • Download URL: rai_audit_llm-0.1.7-py3-none-any.whl
  • Upload date:
  • Size: 12.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for rai_audit_llm-0.1.7-py3-none-any.whl
Algorithm Hash digest
SHA256 f3b4367d205f6c74f84f6572f2167efd1eb8699db3c2d84c111178f1f14bdeae
MD5 685e2f8a5948f194854cb13e67a7298c
BLAKE2b-256 f694237b92b7806eb0c7d9a05debdf16ae5b5363a0394206b65b6796d7033f4a

See more details on using hashes here.

Provenance

The following attestation bundles were made for rai_audit_llm-0.1.7-py3-none-any.whl:

Publisher: publish.yml on SaiTeja-Erukude/rai-audit

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

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