This information can be used to:
-
build new LLM judges
-
form the basis for new datasets
-
help identify ideas for improving your application
Pulling Spans#
If you only want the spans that contain a specific annotation, you can pass in a query that filters on annotation names, scores, or labels.
The queries can also filter by annotation scores and labels.
To filter spans by trace-level annotations (annotations attached to the
trace rather than an individual span), use trace_annotations in place of
annotations. Spans are returned when the trace they belong to carries a
matching annotation.
This spans dataframe can be used to pull associated annotations.
Instead of an input dataframe, you can also pass in a list of ids:
The annotations and spans dataframes can be easily joined to produce a one-row-per-annotation dataframe that can be used to analyze the annotations!

