Skip to content

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

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from

Conversation

kenany
Copy link

@kenany kenany commented Jul 22, 2025

Description

Adds a new community integration, Pangea AI Guard, to NeMo Guardrails.

@Pouyanpi

Checklist

  • I've read the CONTRIBUTING guidelines.
  • I've updated the documentation if applicable.
  • I've added tests if applicable.
  • @mentions of the person or team responsible for reviewing proposed changes.

Copy link
Contributor

Documentation preview

https://nvidia.github.io/NeMo-Guardrails/review/pr-1300

@Pouyanpi Pouyanpi added this to the v0.16.0 milestone Aug 1, 2025
@Pouyanpi Pouyanpi requested review from Pouyanpi and Copilot August 15, 2025 10:18
Copy link

@Copilot Copilot AI left a 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants