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 Service
Azure OpenAI Service
An Azure service that provides access to OpenAI’s GPT-3 models with enterprise capabilities.
4,106 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Manas Mohanty 6,265 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.

    0 comments No comments

Your answer

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