Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PDF viewer for sources #466

Open
blakerosenthal opened this issue Aug 3, 2024 · 3 comments
Open

PDF viewer for sources #466

blakerosenthal opened this issue Aug 3, 2024 · 3 comments
Assignees
Labels
type: enhancement 💅 New feature or request

Comments

@blakerosenthal
Copy link
Contributor

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 blakerosenthal added the type: enhancement 💅 New feature or request label Aug 3, 2024
@blakerosenthal blakerosenthal self-assigned this Aug 3, 2024
@pmeier
Copy link
Member

pmeier commented Aug 4, 2024

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.

@smokestacklightnin
Copy link
Contributor

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
Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: enhancement 💅 New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants