Are you sure you want to delete this access key?
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
This example requires the following environment variables:
OPENROUTER_API_KEY
- Your OpenRouter API key for accessing DeepSeek modelsYou can set this in a .env
file or directly in your environment.
Set up your OPENROUTER_API_KEY
environment variable
Run the standard evaluation:
promptfoo eval
View the results:
promptfoo view
Set up your OPENROUTER_API_KEY
environment variable
Edit redteamconfig.yaml
if needed for your test parameters
Run the red team evaluation:
promptfoo redteam run -c redteamconfig.yaml
This example includes:
promptfooconfig.yaml
- Configuration for standard evaluation testsredteamconfig.yaml
- Configuration for red team evaluation teststests.csv
- Test cases for evaluating model responsesFor more information about this evaluation and our analysis of DeepSeek models' content moderation, read our detailed DeepSeek Censorship Blog Post.
Press p or to see the previous file or, n or to see the next file
Browsing data directories saved to S3 is possible with DAGsHub. Let's configure your repository to easily display your data in the context of any commit!
promptfoo is now integrated with AWS S3!
Are you sure you want to delete this access key?
Browsing data directories saved to Google Cloud Storage is possible with DAGsHub. Let's configure your repository to easily display your data in the context of any commit!
promptfoo is now integrated with Google Cloud Storage!
Are you sure you want to delete this access key?
Browsing data directories saved to Azure Cloud Storage is possible with DAGsHub. Let's configure your repository to easily display your data in the context of any commit!
promptfoo is now integrated with Azure Cloud Storage!
Are you sure you want to delete this access key?
Browsing data directories saved to S3 compatible storage is possible with DAGsHub. Let's configure your repository to easily display your data in the context of any commit!
promptfoo is now integrated with your S3 compatible storage!
Are you sure you want to delete this access key?