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.

Parameters:

prompttools.prompttest.threshold_type module#

class prompttools.prompttest.threshold_type.ThresholdType(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)#

Bases: Enum

Defines the types of thresholds a user can specify for their test case.

MAXIMUM = 2#
MINIMUM = 1#

Module contents#