Fix Citation Format for Prompt Flow Endpoint Responses #1092
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Modify the format for citations field in the promptflow response post processing stage, so that citation shows up in UI.Fixing issue reported: https://portal.microsofticm.com/imp/v5/incidents/details/540126530/summary
Motivation and Context
Currently, when users point webapp to a promptflow endpoint instead of OYD, they are unable to see citations in the frontend and interact with them.
Now citations show up and user can click and interact with them in Web App UI
Prompt flow endpoint integration
Issue: https://portal.microsofticm.com/imp/v5/incidents/details/540126530/summary
All users who want to integrate with prompt flow endpoints that return citations,
Contribution Checklist
[X] I have built and tested the code locally and in a deployed app
[X] For frontend changes, I have pulled the latest code from main, built the frontend, and committed all static files.
[X] This is a change for all users of this app. No code or asset is specific to my use case or my organization.
[X] I didn't break any existing functionality 😄