site/docs/red-team/plugins/competitors.md
Use the Competitors plugin to test whether a brand- or product-specific assistant mentions, recommends, or endorses competing offerings in ways the deployment does not allow. By default, it disallows competitor mentions entirely; with mentions: true, it allows factual mention while still testing for endorsement.
It focuses on whether the model:
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:
This plugin is useful when the business rule is narrower than general truthfulness. It verifies whether the assistant follows the configured mention policy instead of reflexively turning every comparison prompt into a recommendation.