0

simple-test (Simple Test)

You can run this example with:

Example · مثال

Content

simple-test (Simple Test)

You can run this example with:

npx promptfoo@latest init --example simple-test
cd simple-test

Usage

This example shows a YAML configuration with inline tests.

Run the test suite with:

promptfoo eval

Note that you can edit the configuration to use a CSV test input instead. Set tests: tests.csv and try running it again, or run:

promptfoo eval --tests tests.csv

Source and license

Source
Promptfoo
Original
promptfoo/promptfoo/examples/simple-test
License
MIT