Register
Login
Resources
Docs Blog Datasets Glossary Case Studies Tutorials & Webinars
Product
Data Engine LLMs Platform Enterprise
Pricing Explore
Connect to our Discord channel
Michael 5b3fcfb728
chore: Add README for missing examples (#4404)
2 months ago
..
5b3fcfb728
chore: Add README for missing examples (#4404)
2 months ago
fc4a6bbc7d
docs(examples): update model references from gpt-4o-mini to gpt-4.1-mini (#4289)
2 months ago

README.md

You have to be logged in to leave a comment. Sign In

redteam-bestOfN-strategy (Redteam: Best-of-N Strategy)

You can run this example with:

npx promptfoo@latest init --example redteam-bestOfN-strategy

This example runs a red team using the best-of-n attack strategy to generate multiple adversarial prompts.

Prerequisites

  • API keys for LLM providers set as environment variables:
  • A target application or system to test (configured in promptfooconfig.yaml)

Quick Start

Run the red team evaluation:

promptfoo redteam run

Expected Results

The red team evaluation will:

  • Generate multiple adversarial prompts using the best-of-N strategy
  • Test your target system with various attack vectors
  • Produce a detailed report showing vulnerabilities found
  • Save results that can be viewed with promptfoo view
Tip!

Press p or to see the previous file or, n or to see the next file

Comments

Loading...