Skip to main content

Sessions

A session is a conversation: the traces with one sessionId. Newest first, with sums and the first input and last output:
The filter of /v1/sessions/find takes userId, from and to (the start of the session). One session with its traces, oldest first:

Scores (evals and feedback)

A score is a number, a yes/no or a label on a trace, a span or a session. It can come long after the trace: from a person, an LLM judge or a test. Write one (at, the time of the score, is the time the server gets it when you leave it out):
The scores of a trace, by time:
Traces by their scores (anyScore takes name, min, max, label, source):
Sums of scores. The average and the count per label of the scores with one name, per group. Per model of the trace:
The average of a yes/no score is the share of yes (here 3 of 5):
The average per day (of the score’s own time):
To compare two experiments, run the same query twice with a traces filter, for example "traces": {"root": {"attributes": {"experiment": "A"}}} and then "B". All fields: the server reference, “Query API” (the item “Scores for evals”).