examples/provider-watsonx/README.md
This example compares IBM Granite, Meta Llama, and Mistral models available through IBM watsonx.ai.
You can run this example with:
npx promptfoo@latest init --example provider-watsonx
cd provider-watsonx
Set up authentication and project ID:
IAM Authentication (Recommended)
export WATSONX_AI_APIKEY=your-ibm-cloud-api-key
export WATSONX_AI_PROJECT_ID=your-project-id
Bearer Token Authentication
export WATSONX_AI_BEARER_TOKEN=your-bearer-token
export WATSONX_AI_PROJECT_ID=your-project-id
Follow the instructions in watsonx.md to retrieve your credentials and project ID.
promptfoo eval
Or with the local build:
npm run local -- eval --config examples/provider-watsonx/promptfooconfig.yaml
Afterwards, view the results:
promptfoo view