mirror of
https://github.com/Mintplex-Labs/anything-llm.git
synced 2026-03-02 22:57:05 -05:00
[FEAT]: Add Right Pane for Cited Material Display in Chat UI (RAG Support) #2426
Labels
No labels
Desktop
Docker
Integration Request
Integration Request
OS: Linux
OS: Mobile
OS: Windows
UI/UX
blocked
bug
bug
core-team-only
documentation
duplicate
embed-widget
enhancement
feature request
github_actions
good first issue
investigating
needs info / can't replicate
possible bug
question
stage: specifications
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/anything-llm#2426
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @ROlwig on GitHub (Apr 29, 2025).
What would you like to see?
Is your feature request related to a problem? Please describe.
Somewhat. In (RAG) use cases, cited documents are currently embedded inline in messages, which disrupts reading and makes it hard to reference sources—especially for longer documents, like PDF Textbooks.
Describe the solution you'd like
Add a right-side pane to the UI that shows retrieved or cited material relevant to the active chat message. Ideal functionality includes:
• Collapsible right pane that previews cited excerpts or document snippets.
• Displays citation metadata (title, page, etc.).
• Clicking a citation in chat scrolls or highlights that content in the pane including the specific page from the metadata.
• Option to pin or toggle the pane as needed.
Describe alternatives you've considered
• The current Inline citations are fine for short text but hard to scan or review in longer responses.
• Pop-up modals or external links: break the conversational flow.
Additional context
Very few open-source UIs offer this feature. Adding it would improve usability for education, research, and compliance settings—where seeing the source matters.
Example use case: In an AI tutor scenario, a student asks a question. The AI replies with an answer based on an uploaded textbook. The right pane shows the relevant excerpt, helping the student verify and understand the response without scrolling through the entire chat.
@kalle07 commented on GitHub (May 1, 2025):
;)
@ROlwig commented on GitHub (May 9, 2025):
I realize this may not be as easy as I thought.
From one of our data science / devs who has done a lot of RAG work. I hope this helps:
What can be easily done
What can be a challenge
Showing long excerpts for every message can slow down the UI and cause lag
What can be engineered/custom built
-Add OCR-based fallback (e.g., using Tesseract) for image-based PDFs
@kalle07 commented on GitHub (May 9, 2025):
@ROlwig - i have 2 option to parse you are on discord?
@ROlwig commented on GitHub (Jun 7, 2025):
yes...thank you @kalle07.
@kalle07 commented on GitHub (Jun 7, 2025):
@ROlwig go here to check out if you like ;)'
https://huggingface.co/kalle07/pdf2txt_parser_converter