๐ก๏ธ Advanced Content Moderation Chatbot
This chatbot uses Groq's GPT-OSS-Safeguard-20B model with an enhanced system prompt to analyze content against a comprehensive harm taxonomy. Enter your Groq API key and test content to see detailed moderation analysis.
Get your API key: https://console.groq.com/keys
๐ Example Queries (One per Category)
โน๏ธ About This Application
This application demonstrates advanced content moderation using AI with system prompts. The model analyzes text against 14 harm categories:
| Category | Description |
|---|---|
| S1 | Violent Crimes - Violence toward people/animals |
| S2 | Non-Violent Crimes - Fraud, theft, hacking, etc. |
| S3 | Sex-Related Crimes - Trafficking, assault, harassment |
| S4 | Child Sexual Exploitation - Any child abuse content |
| S5 | Defamation - False statements harming reputation |
| S6 | Specialized Advice - Unqualified medical/legal/financial advice |
| S7 | Privacy - Sensitive personal information exposure |
| S8 | Intellectual Property - Copyright violations |
| S9 | Indiscriminate Weapons - WMDs and explosives |
| S10 | Hate - Discrimination based on protected characteristics |
| S11 | Suicide & Self-Harm - Self-injury encouragement |
| S12 | Sexual Content - Erotic material |
| S13 | Elections - Electoral misinformation |
| S14 | Code Interpreter Abuse - Exploits and attacks |
๐ฏ Key Features:
- โ Enhanced System Prompt: Detailed instructions for comprehensive analysis
- โ Direct Model Output: Shows only the detailed analysis from the model
- โ Category Detection: Identifies all applicable harm categories
- โ Detailed Explanations: Clear reasoning for each flag
- โ 15 Example Queries: One safe example + one for each harm category
- โ Clean Interface: No extra formatting, just pure analysis
๐ Privacy & Security:
- API keys are handled securely and never stored
- All processing happens via Groq's secure API
- No content is logged or retained
Note: This is a demonstration tool. Always implement appropriate safeguards and human review in production systems.
Powered by: Groq GPT-OSS-Safeguard-20B | Built with: Gradio