Skip to main content

Target Discovery

Promptfoo's Target Discovery Agent automatically extracts useful information about generative AI systems that you want to red team. This information is used to craft adversarial inputs that are unique to the target system, improving attack efficacy and response evaluation quality.

Usage

Target discovery runs automatically during red team scans and adversarial test case generation. The discovered information is written to the redteam.purpose field of the outputted redteam.yaml.

Preview

Alternatively, you can preview the scan report of a previously configured target; run:

npx promptfoo@latest redteam discover