Log Evaluations to Arize
Use the log_evaluations
function as part of our Python SDK to attach evaluations you've run to traces. The code below assumes that you have already completed an evaluation run, and you have the evals_dataframe
object. It also assumes you have a traces_dataframe
object to get the span_id
that you need to attach the evals.
The evals_dataframe
requires four columns, which should be auto-generated for you based on the evaluation you ran using Phoenix.
eval.<eval_name>.label
eval.<eval_name>.score
eval.<eval_name>.explanation
context.span_id
Currently, our evaluations are logged within Arize every 10 minutes, and we're working on making them as close to instant as possible! Reach out to support@arize.com if you're having trouble here.
Last updated