Observed since 21 Oct, 10:51 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
Guardrails for evaluating AI-generated content
AIGuardrail is a comprehensive Python library designed to evaluate and safeguard AI-generated content. It provides robust checks for safety, factual consistency, readability, privacy, token efficiency, and protection against malicious content.
Install aiguardrail via pip:
pip install aiguardrail
Evaluate text quickly against all available guardrails:
from aiguardrail.guardrails import evaluate_guardrails
text = "According to the source, this event took place in March."
results_df, final_score = evaluate_guardrails(text)
print(results_df)
print(f"Overall Guardrail Score: {final_score}")
specific_guardrails = ["GR-S-001", "GR-Q-005", "GR-C-002"]
results_df, final_score = evaluate_guardrails(text, selected_guardrail_ids=specific_guardrails)
print(results_df)
print(f"Overall Guardrail Score: {final_score}")
Retrieve metadata about all guardrails easily:
from aiguardrail.guardrails import list_available_guardrails
guardrails = list_available_guardrails()
for gr in guardrails:
print(f"{gr['id']} - {gr['name']} [{gr['area']}]")
Example output:
GR-S-001 - Output Moderation [Security]
GR-Q-001 - Hallucination Detection [Quality]
GR-S-005 - PII Redaction [Security]
...
Guardrails-Eval is licensed under the MIT License. See LICENSE for details.
⭐ Enjoy using aiguardrail !
Download counts and popularity will appear here as the collector receives them.
| Version | Published | Direct dependencies | Open version |
|---|---|---|---|
| 0.1.0 | 16 Jun 2025 | 4 |
This describes our collected data; it is not a security assessment.
Observed since 21 Oct, 10:51 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
package:c28b2855f3c4d5010c069cab86a006d0b41e016591ed7226ceddc3ac338e4200