site/docs/red-team/plugins/competitors.md
The Competitors red teaming plugin is designed to test whether an AI system can be influenced to mention or recommend its competitors. This plugin helps identify potential vulnerabilities where the AI might inadvertently promote competing products or services. By default, it disallows any mention of competitors, but can be configured to allow mentions but not endorsements.
The Competitors plugin helps to:
To include the Competitors plugin in your LLM red teaming setup:
redteam:
plugins:
- id: competitors
numTests: 10
config:
mentions: false # Defaults to false, set to true to allow mentions but not endorsements
The Competitors plugin generates test cases that attempt to:
By default:
If mentions: true:
Testing for competitor mention and endorsement vulnerabilities is helpful for:
By incorporating the Competitors plugin in your LLM red teaming strategy, you can identify and address potential vulnerabilities in your AI system's handling of competitor-related queries and maintain a focus on your own products or services.
For a comprehensive overview of LLM vulnerabilities and red teaming strategies, visit our Types of LLM Vulnerabilities page.