I've added spans to a dataset and then downloaded it. I can not see user messages in the dataset, although they are clearly present in the spans when I view them in projects. when downloaded, all I get is: {"role": "user"}, and no "content"for role user How can I download the complete list of messages from phoenix?
It seems likely that you can download spans, including user messages, using the get_spans_dataframe method from your Phoenix session object. This method allows you to pull a DataFrame of the traces and optionally filter them. If user messages are part of the span attributes, ensure that you are selecting the correct attributes when querying the spans.Here's a basic example of how you might retrieve spans: LBKSimport phoenix as pxLBKS# Initialize client client = px.Client()LBKS# Retrieve spans DataFrame spans_df = client.get_spans_dataframe()LBKS# Check if user messages are included in the DataFrame print(spans_df.head())LBKSIf user messages are not appearing, verify that they are included in the span attributes and that you are querying the correct project or time range. Would you like more detail on any specific part?Sources:
- https://docs.arize.com/phoenix/tracing/how-to-tracing/extract-data-from-spans#bOaHNYT91AAE
馃挕聽Hint: Mention RunLLM in the thread for followups.
may I ask what method you're using to download your dataset?
I tried all three of these from the datasets UI, none showed content from the role user I also tried another method get_spans_dataframe mentioned by the bot, it gave me connectError, maybe I missed something here
Hey Rohan, when you use the get_spans_dataframe, what kind of error do you get?
also, it looks like your connection error might be because you haven't set the endpoint on your client to point to hosted phoenix?
is this using the latest version of Phoenix?
which instrumentor was used to generate the spans?
i am not able to reproduce this issue
what if you try to add the span to a new dataset?
