Register
Login
Resources
Docs Blog Datasets Glossary Case Studies Tutorials & Webinars
Product
Data Engine LLMs Platform Enterprise
Pricing Explore
Connect to our Discord channel
Michael 76797692e5
feat(schema): add yaml schema validation to config files (#1990)
10 months ago
..
806e52216f
chore(docs): add shell syntax highlighting and fix typos (#953)
1 year 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 call Vertex AI models in Node, you'll need to install Google's official auth client as a peer dependency:

npm i google-auth-library

Make sure the Vertex AI API is enabled for the relevant project in Google Cloud. Then, ensure that you've selected that project in the gcloud cli:

gcloud config set project PROJECT_ID

Next, make sure that you've authenticated to Google Cloud using one of these methods:

  • You are logged into an account using gcloud auth application-default login
  • You are running on a machine that uses a service account with the appropriate role
  • You have downloaded the credentials for a service account with the appropriate role and set the GOOGLE_APPLICATION_CREDENTIALS environment variable to the path of the credentials file.

Then, edit promptfooconfig.yaml

Then run:

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...