Are you sure you want to delete this access key?
This example shows how to red team an Ollama model using promptfoo. For a detailed walkthrough, see the blog post.
# On macOS/Linux
ollama serve
# On Windows
# Run Ollama from the installed application
ollama pull llama3.2
# Verify the model is working:
ollama run llama3.2 "Hello, how are you?"
npx promptfoo@latest redteam run
npx promptfoo@latest redteam report
The report will show vulnerability categories discovered, severity levels, specific test cases that exposed issues, and suggested mitigations. See the blog post for example reports and screenshots.
The promptfooconfig.yaml
file configures:
This example tests for various vulnerabilities (see full list):
Based on your test results, consider:
For more details, see:
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?