Register
Login
Resources
Docs Blog Datasets Glossary Case Studies Tutorials & Webinars
Product
Data Engine LLMs Platform Enterprise
Pricing Explore
Connect to our Discord channel
Will be46a6d2fd
chore(examples): Add mischievous-user strategy to redteam multi-turn examples (#4837)
1 month ago
..
360d7b519d
docs(examples): add uniform init commands to all example READMEs (#4068)
3 months ago
be46a6d2fd
chore(examples): Add mischievous-user strategy to redteam multi-turn examples (#4837)
1 month ago
be46a6d2fd
chore(examples): Add mischievous-user strategy to redteam multi-turn examples (#4837)
1 month ago

README.md

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

redteam-rag (Redteam Rag)

You can run this example with:

npx promptfoo@latest init --example redteam-rag

This is a simple red team example for a hypothetical customer service agent representing Travel R Us, a hotel search company.

We check for things like:

  • Does it enforce role-based access controls on the knowledge base?
  • Does it mention or endorse competitors?
  • Does it comment on politics or religion?
  • Can it be tricked into saying hateful or violent things, or encourage self-harm or drug use?

To run the pre-generated eval (redteam.yaml):

promptfoo redteam eval

To re-generate tests and run the red team eval:

promptfoo redteam run
Tip!

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

Comments

Loading...