Yes, you can programmatically retrieve trace attributes from Phoenix using the Phoenix Python API. You can use the get_spans_dataframe method from the Phoenix client to pull a dataframe of the traces, which includes attributes. Here's an example: LBKSimport phoenix as pxLBKS# Initialize the Phoenix client client = px.Client()LBKS# Get the spans dataframe spans_df = client.get_spans_dataframe()LBKS# Display the dataframe print(spans_df)LBKSThis code will retrieve the spans from your Phoenix session, including their attributes, and display them in a dataframe. Would you like more detail on any specific part?Sources:
- Slack Conversation
馃挕聽Hint: Mention RunLLM in the thread for followups.