Skip to content

trulens.dashboard.pages.Evaluations

trulens.dashboard.pages.Evaluations

Classes

Functions

render_component

render_component(
    query: Lens,
    component: ComponentView,
    header: bool = True,
) -> None

Render the accessor/path within the wrapped app of the component.

render_record_metrics

render_record_metrics(
    app_df: DataFrame, selected_rows: DataFrame
) -> None

Render record level metrics (e.g. total tokens, cost, latency) compared to the average when appropriate.

extract_metadata

extract_metadata(row: Series) -> str

Extract metadata from the record_json and return the metadata as a string.

PARAMETER DESCRIPTION
row

The row containing the record_json.

TYPE: Series

RETURNS DESCRIPTION
str

The metadata extracted from the record_json.

TYPE: str