Back to Promptfoo

config-jsonl-test-cases (JSON Lines (JSONL) Test Cases Example)

examples/config-jsonl-test-cases/README.md

0.121.9516 B
Original Source

config-jsonl-test-cases (JSON Lines (JSONL) Test Cases Example)

You can run this example with:

bash
npx promptfoo@latest init --example config-jsonl-test-cases
cd config-jsonl-test-cases

This example demonstrates how to define test cases using the JSON Lines text file format.

Usage

  1. Initialize this example by running:
sh
npx promptfoo@latest init --example config-jsonl-test-cases
  1. Run the evaluation with:
sh
npx promptfoo@latest eval -c jsonl-test-cases/promptfooconfig.yaml