0

eval-errors-vs-failures (Errors Vs Failures)

You can run this example with:

Example · مثال

Content

eval-errors-vs-failures (Errors Vs Failures)

You can run this example with:

npx promptfoo@latest init --example eval-errors-vs-failures
cd eval-errors-vs-failures

Usage

This directory contains a custom provider that throws errors when the prompt includes !ERROR!, demonstrating how promptfoo distinguishes between test errors (provider failures) and test failures (failed assertions).

Source and license

Source
Promptfoo
Original
promptfoo/promptfoo/examples/eval-errors-vs-failures
License
MIT