Back to Promptfoo

eval-custom-grading-prompt (Custom Grading Prompt)

examples/eval-custom-grading-prompt/README.md

0.121.9433 B
Original Source

eval-custom-grading-prompt (Custom Grading Prompt)

You can run this example with:

bash
npx promptfoo@latest init --example eval-custom-grading-prompt
cd eval-custom-grading-prompt

Usage

To get started, set your OPENAI_API_KEY environment variable.

Next, have a look at the custom prompt in promptfooconfig.yaml.

Then run:

bash
promptfoo eval

Afterwards, you can view the results by running promptfoo view