integration-google-sheets (Google Sheets)
You can run this example with:
Content
integration-google-sheets (Google Sheets)
You can run this example with:
npx promptfoo@latest init --example integration-google-sheets
cd integration-google-sheets
npm install promptfoo
Usage
This example shows how to use an external Google Sheet to run tests. To get started, set your OPENAI_API_KEY environment variable.
Next, duplicate the Google Sheet in promptfooconfig.yaml and replace the URL.
Public sheet imports work without extra packages. Standard npm installs include the client for private reads and output writes. If you omitted optional dependencies, install the package named in the CLI error in this directory. Promptfoo 0.125.1 uses npm install @googleapis/sheets. Builds using Google Auth directly use npm install google-auth-library.
Then run:
npx promptfoo eval
Afterwards, you can view the results by running npx promptfoo view
Source and license
- Source
- Promptfoo
- Original
- promptfoo/promptfoo/examples/integration-google-sheets
- License
- MIT