Learn how to log external evaluation results (metrics) with your trace.
enrich_session
function to set on the trace level.To pass to HoneyHive, pass it to the param in the enrich_session
function. This function is used to enrich the session with additional information. Remember that enrich_session
will update, not overwrite, the existing object on the trace.Read more about the enrich_session
function in the Python SDK reference.Here’s an example of how to set on the trace level in Python:Return Type | Available Measurements | Notes | Uses |
---|---|---|---|
Boolean | Percentage True/False | - | Evaluations |
Number | Sum, Avg, Median, Min, Max, P95, P98, P99 | - | Evaluations |
String | - | Used for filters and group by | Classification, feature extraction, etc. |
metrics.step_evals.0.user_intervened
as a boolean field or trajectory_eval.overall
as a numeric field.
enrich_session
function in the Python SDK reference.