redteam-deepseek (DeepSeek Red Team Evaluation)
This example demonstrates how to run both an eval from a csv file and an automated red team against DeepSeek models.
Content
redteam-deepseek (DeepSeek Red Team Evaluation)
This example demonstrates how to run both an eval from a csv file and an automated red team against DeepSeek models.
You can run this example with:
npx promptfoo@latest init --example redteam-deepseek
cd redteam-deepseek
Environment Variables
This example requires the following environment variables:
OPENROUTER_API_KEY- Your OpenRouter API key for accessing DeepSeek R1 0528
You can set this in a .env file or directly in your environment.
Getting Started
Running an eval
- Set up your
OPENROUTER_API_KEYenvironment variable - Run the standard evaluation:
promptfoo eval
- View the results:
promptfoo view
Running the redteam
- Set up your
OPENROUTER_API_KEYenvironment variable - Edit
redteamconfig.yamlif needed for your test parameters - Run the red team evaluation:
promptfoo redteam run -c redteamconfig.yaml
Configuration
This example includes:
promptfooconfig.yaml- Configuration for standard evaluation testsredteamconfig.yaml- Configuration for red team evaluation teststests.csv- Test cases for evaluating model responses
Additional Resources
For more information about this evaluation and our analysis of DeepSeek models' content moderation, read our detailed DeepSeek Censorship Blog Post.
Source and license
- Source
- Promptfoo
- Original
- promptfoo/promptfoo/examples/redteam-deepseek
- License
- MIT