Share via

Citation Panel Display

Jordan Gracey 0 Reputation points
2025-02-21T13:47:43.0866667+00:00

Hello,

I have created a web application that allows users to query a connected data source in order to receive general summaries of the data. It also provides citations when providing a response which when clicked displays as image attached.

The data itself comes into the blob storage in a JSON format which explains why the content is displaying the way it is. Would it be possible to have the citation content display in a table format to make it easier to read?

User's image

Azure OpenAI in Foundry Models

1 answer

Sort by: Most helpful
  1. Manas Mohanty 17,185 Reputation points Microsoft External Staff Moderator
    2025-02-25T16:14:03.85+00:00

    Hi Jordan Gracey

    We can parse the JSON and filter the dictionary part of response to convert to a tabular format and display it as separate chunk to customer.

    # Sample dictionary
    import pandas as pd
    data = {
        "Impact": "Medium",
        "Form Status": "Submitted",
         .....
    }
    # Convert dictionary to DataFrame
    df = pd.DataFrame([data])
    # Display the DataFrame
    print(df)
    
    

    Thank you.

    Was this answer helpful?

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.