Skip to content

trulens.core.feedback.selector

trulens.core.feedback.selector

Classes

Selector dataclass

Functions
select_record_input staticmethod
select_record_input() -> Selector

Returns a Selector that gets the record input.

RETURNS DESCRIPTION
Selector

Selector that gets the record input.

select_record_output staticmethod
select_record_output() -> Selector

Returns a Selector that gets the record output.

RETURNS DESCRIPTION
Selector

Selector that gets the record output.

select_context staticmethod
select_context(*, collect_list: bool) -> Selector

Returns a Selector that tries to retrieve contexts.

PARAMETER DESCRIPTION
collect_list

Assuming the returned Selector describes a list of strings, whether to call the feedback function: 1. [if collect_list is True]: Once giving the entire list as input. 2. [if collect_list is False]: Separately for each entry in the list and aggregate the results.

TYPE: bool

RETURNS DESCRIPTION
Selector

Selector that tries to retrieve contexts.