Are you sure you want to delete this access key?
Example configurations for testing Google Vertex AI models with promptfoo.
You can run this example with:
npx promptfoo@latest init --example google-vertex
VERTEX_PROJECT_ID
- Your Google Cloud project IDGOOGLE_APPLICATION_CREDENTIALS
- Path to service account credentials (optional)Install dependencies:
npm install google-auth-library
Configure authentication:
# User account (development)
gcloud auth application-default login
# Or service account
export GOOGLE_APPLICATION_CREDENTIALS=/path/to/credentials.json
Set your project ID:
export VERTEX_PROJECT_ID=your-project-id
This example includes:
promptfooconfig.gemini.yaml
: Gemini models with function calling, system instructions, and safety settingspromptfooconfig.claude.yaml
: Claude models for technical writing and code analysispromptfooconfig.llama.yaml
: Llama models with safety features and region configurationpromptfooconfig.search.yaml
: Search grounding for real-time information# Basic example
promptfoo eval -c promptfooconfig.yaml
# Model-specific examples
promptfoo eval -c promptfooconfig.gemini.yaml
promptfoo eval -c promptfooconfig.claude.yaml
promptfoo eval -c promptfooconfig.llama.yaml
# Search grounding tool and image understanding
promptfoo eval -c promptfooconfig.search.yaml
promptfoo eval -c promptfooconfig.image.yaml
# View results
promptfoo view
Each configuration demonstrates different model capabilities, from function calling and tool use to safety features and real-time information retrieval.
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?