Register
Login
Resources
Docs Blog Datasets Glossary Case Studies Tutorials & Webinars
Product
Data Engine LLMs Platform Enterprise
Pricing Explore
Connect to our Discord channel
Gnanavel Premnath a35933af05
chore(providers): add support for the WATSONX_AI_AUTH_TYPE env (#2547)
7 months ago
..
a35933af05
chore(providers): add support for the WATSONX_AI_AUTH_TYPE env (#2547)
7 months ago
76797692e5
feat(schema): add yaml schema validation to config files (#1990)
10 months ago

README.md

You have to be logged in to leave a comment. Sign In

To get started, you need to set up authentication and project ID. You can choose between two authentication methods:

Option 1: IAM Authentication

export WATSONX_AI_AUTH_TYPE=iam
export WATSONX_AI_APIKEY=your-ibm-cloud-api-key

Option 2: Bearer Token Authentication

export WATSONX_AI_AUTH_TYPE=bearertoken
export WATSONX_AI_BEARER_TOKEN=your-ibm-cloud-bearer-token

Then set your project ID:

export WATSONX_AI_PROJECT_ID=your-ibm-project-id

Note: If WATSONX_AI_AUTH_TYPE is not set, the provider will automatically choose the authentication method based on which credentials are available, preferring IAM authentication if both are present.

Follow the instructions in watsonx.md to retrieve your API keys, bearer token, and project ID.

Next, edit promptfooconfig.yaml.

Then run:

npm run local -- eval --config examples/watsonx/promptfooconfig.yaml

or

promptfoo eval

Afterwards, you can view the results by running promptfoo view

Tip!

Press p or to see the previous file or, n or to see the next file

Comments

Loading...