ragna icon indicating copy to clipboard operation
ragna copied to clipboard

PDF viewer for sources

Open blakerosenthal opened this issue 1 year ago • 3 comments

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

blakerosenthal avatar Aug 03 '24 19:08 blakerosenthal

We need a way to get the document content to the UI. Thus, I propose three new API endpoints:

  • GET /documents / GET /documents/{id}: Get all documents or one specific one associated with the current user. This is the same as what we have for chats.
  • GET /documents/{id}/content: Returns the content of the document.

pmeier avatar Aug 04 '24 20:08 pmeier

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

smokestacklightnin avatar Jan 29 '25 08:01 smokestacklightnin

I have completed the REST API endpoints, and now it remains to add the UI elements.

smokestacklightnin avatar Feb 07 '25 08:02 smokestacklightnin