Catalog PyPI
Back to packageRELEASE DETAILS

0.1.1

PyPI

AIGuard

A system to protect AI from misuse and harmful inputs.

Published9 Jan 2025
Direct dependencies1
Transitive dependenciesNot calculated

README

Version 0.1.1 documentation

AI Guard (Beta)

AI Guard is designed to protect AI Systems from misuse, manipulation, and harmful inputs. It ensures that the AI behaves as intended and does not deviate from its guidelines or generate harmful content.

Features

  • Input Sanitization
  • Prompt Classification
  • Manipulation Detection
  • Ethical Compliance Check
  • Response Validation
  • Logging and Monitoring
  • Customizable Settings
  • Interactive Testing Mode (Uses Ollama)
  • Fallback Mechanisms
  • Scalability and Extensability

How It Works

AI Guard protects AI Systems from misuse and harmful inputs by sanitizing user prompts to remove noise, classifying them as "non-toxic" (safe) or "toxic" (malicious) using a machine learning model and detecting manipulation attempts through predefined rules. It ensures ethical compliance by blocking prompts that request harmful or illegal actions and validates AI responses to prevent inappropriate content. The system logs all activities for auditing, operates interactively for testing, and includes a fallback mechanism to handle ambiguous cases by defaulting to "non-toxic". You can customize this however you'd like via the settings.yml file it supports features like input sanitization, prompt classification, and response validation making it ideal for chatbots, ai assistants, content moderation and research!

Settings and Manipulation Rules

If you find any form of manipulation rule that can manipulate the AI assistant in any form of way you can add that said prompt to the manipulation_rules.txt file and you can open an issue stating a bypass you found. There are currently 583 different manipulation rules as of the first beta release and we're always looking to add more to this list that can really keep all AI safe from unrightful prompt engineering.

If you wish to tinker around with it and enable or disable whatever you dont like with in the whole system, you can head to the settings.yml file and enable or disable things. You can even go ahead and change the logs file to a whole different file if you wish.

Downloads & popularity

Awaiting observations

No metric observations yet

Download counts and popularity will appear here as the collector receives them.

Declared dependencies 1

Native requirements
1 direct targetsNot calculated transitive count
Package / targetRequirementRelationship
ollama
Environment
{
  "extras": "",
  "marker": null,
  "requires_python": ">=3.6",
  "evaluation": "NOT_EVALUATED"
}
ollamaruntime

Distribution files

2 collected
AIGuard-0.1.1-py3-none-any.whl

bdist_wheel · 3.17 KB · Python py3

Source file
aiguard-0.1.1.tar.gz

sdist · 4.28 KB · Python source

Source file

Repository

PENDING
syntaxsama/aiguard

Shared repository data · GitHub

License detected in repository
Not collected

Metadata history

Meaningful changes
Current collected state Current

Observed since 21 Oct, 10:51 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package_version:fe6a136bd1b7200023b45d4696a356115b100e3028b47cd4ea5c7c42fbc1782a

Other collected versions

View all collected versions →