tags as a list of relevant labels, and metadata as a dictionary of label types and their values. The individual tag and metadata values must be strings.
answer variable is set to the raw text output of the model so that it can be used later.tags and metadata inputs, our annotations are attached to the Trace.
tags and metadata inputs, our annotations are attached to the Span.
NOTE : In this guide, the tags and metadata used for the Span and the Trace are identical. But, they don’t have to be. You can use different tags and metadata for Spans and the Traces they’re attached to.
logger.conclude() with the LLM’s raw text output as the input.
Then, logger.flush() pushes the logs to the selected Project’s Log Stream.
app (as in the Getting Started demo), you can run it by using the following command in your terminal.
input=prompt)logger.conclude(answer))
llm button below Trace in the data map on the left.
You will see the data logged to the Span. This includes:
input=[{"role": "system", "content": prompt}])output=response.choices[0].message.content)