prompttools.prompttest package#
Subpackages#
Submodules#
prompttools.prompttest.prompttest module#
- prompttools.prompttest.prompttest.main()#
- prompttools.prompttest.prompttest.prompttest(metric_name, eval_fn, prompts, threshold=1.0, threshold_type=ThresholdType.MINIMUM, expected=None)#
Creates a decorator for prompt tests, which can annotate evaluation functions. This enables developers to create a prompt test suite from their evaluations.