PDF viewer for sources
Feature description
We would like to be able to click on the Source Info button on the assistant's answer in the UI and show the list of relevant sources, with a View or Open button on each source. This button can either use Panel's built-in PDF viewer or open the file natively in the browser. Ideally the new pane would scroll to and highlight the exact source content in the file.
Value and/or benefit
No response
Anything else?
No response
We need a way to get the document content to the UI. Thus, I propose three new API endpoints:
The current plan of action is to add the get documents API endpoints along with their unit tests in #547 and add the UI elements in a subsequent PR
I have completed the REST API endpoints, and now it remains to add the UI elements.