-
Notifications
You must be signed in to change notification settings - Fork 530
feat: add Pangea AI Guard community integration #1300
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Co-authored-by: Konstantin Lapine <[email protected]>
Documentation preview |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR adds a new community integration for Pangea AI Guard to NeMo Guardrails, enabling protection against prompt injection attacks, PII detection, toxicity filtering, and other AI safety risks through configurable detection policies.
Key changes include:
- Implementation of Pangea AI Guard integration with input/output rail support
- Configuration options for recipe-based detection policies
- Example configurations for both Colang v1 and v2
- Comprehensive documentation and test coverage
Reviewed Changes
Copilot reviewed 18 out of 18 changed files in this pull request and generated 3 comments.
Show a summary per file
File | Description |
---|---|
nemoguardrails/library/pangea/actions.py |
Core action implementation for Pangea AI Guard API integration |
nemoguardrails/rails/llm/config.py |
Configuration models for Pangea rail options and settings |
nemoguardrails/library/pangea/flows.co |
Colang v2 flow definitions for input/output guardrails |
nemoguardrails/library/pangea/flows.v1.co |
Colang v1 flow definitions for input/output guardrails |
tests/test_pangea_ai_guard.py |
Unit tests for Pangea AI Guard output functionality |
examples/configs/pangea* |
Example configurations demonstrating integration usage |
docs/user-guides/community/pangea.md |
Complete integration documentation and setup guide |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! 🎉
Thank you @kenany for the PR and addressing all the feedback. Let's merge this 🚀
Description
Adds a new community integration, Pangea AI Guard, to NeMo Guardrails.
@Pouyanpi
Checklist