Hi everyone Is there a way to log_evaluation to hosted phoenix? I'm trying the following:
px_client = px.Client(
endpoint=Endpoints.HOSTED_PHOENIX.value,
)
px_client.log_evaluations(
SpanEvaluations(eval_name="Summary", dataframe=summary_df),
SpanEvaluations(eval_name="Hallucination", dataframe=hallucination_df),
)But I keep getting 405 error?
HTTPStatusError: Client error '405 Method Not Allowed' for url 'https://app.phoenix.arize.com/v1/traces/v1/evaluations'
For more information check: https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/405
endpoint= is incorrect
.../v1/traces/v1/evaluationsshould be
.../v1/evaluationsIdk why but even after manually setting span id in df I'm unable to view the evals
how did you get the span id in the first place?
I didn't I got an error for missing span_id so I manually extracted them via otel and set it as id in the dfs
yea, right now it just fails silently, what does your span_id look like? it should not be bytes
because we store the as strings in the database
Ohh I see lemme try this!!
because usually users would extract the spans from the database so they would just get the same ids
label score explanation
span_id
3965364113683260599 good 1 To determine if the summary is comprehensive, ...
label score explanation
span_id
3965364113683260599 factual 0 The answer provided is factual. It accurately ...these are what they look like rn
right, it should be hex format instead
use the helper above
