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.6.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.6-py3-none-any.whl (12.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: rai_audit_llm-0.1.6.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.6.tar.gz
Algorithm Hash digest
SHA256 d79a2f972985a9ff3e1dd463d6eaa921cf95d5f6fb9b5807f016ef4baf1479c1
MD5 3b1c47d67ad9fec90742aedbb774b540
BLAKE2b-256 7d4123bce3136811bab518a5ad9bb904bd39aab43c86d8cf29b587ed5433a315

See more details on using hashes here.

Provenance

The following attestation bundles were made for rai_audit_llm-0.1.6.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.6-py3-none-any.whl.

File metadata

  • Download URL: rai_audit_llm-0.1.6-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.6-py3-none-any.whl
Algorithm Hash digest
SHA256 349a722f933e995267156c9f2d86a8a727bfc368a9d5140d4eb116409e78799f
MD5 ab2fa17be0be7c9e44765a3e23931116
BLAKE2b-256 e075e3369d01a6f4768f20268da4bc553898cd7448b2a80583437227eb4112b8

See more details on using hashes here.

Provenance

The following attestation bundles were made for rai_audit_llm-0.1.6-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