Register
Login
Resources
Docs Blog Datasets Glossary Case Studies Tutorials & Webinars
Product
Data Engine LLMs Platform Enterprise
Pricing Explore
Connect to our Discord channel
Ian Webster 532da105ee
feat(redteam): custom strategy (#2166)
9 months ago
..
532da105ee
feat(redteam): custom strategy (#2166)
9 months ago
532da105ee
feat(redteam): custom strategy (#2166)
9 months ago
532da105ee
feat(redteam): custom strategy (#2166)
9 months ago

README.md

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

Custom Red Team Strategy Example

A simple example showing how to create a custom red team strategy that prepends "PLEASE" to test prompts.

Usage

The example is configured in promptfooconfig.yaml and uses:

  • A basic prompt template
  • GPT-4o-mini as the target model
  • A custom polite strategy

Run the evaluation:

promptfoo eval

View results:

promptfoo view

For more details on custom strategies, check out the docs.

Tip!

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

Comments

Loading...