mirror of
https://github.com/Mintplex-Labs/anything-llm.git
synced 2026-03-02 22:57:05 -05:00
[FEAT]: Add link to open file in citations #2343
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#2343
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 @devbysb on GitHub (Apr 3, 2025).
What would you like to see?
Hi, I really appreciate this project, but there's one little thing missing. When you get a response, there are quotes with the text found. Would it be possible to display a link to view the file? This would allow documentation containing screenshots to display them :) If this option could be available both in the interface and in the widget, with an enable/disable setting, that would be perfect.
Thanks
@timothycarambat commented on GitHub (Apr 3, 2025):
This is impossible in the Docker-based version since we cannot open local files from a browser environment - and the file may even no longer exist since in the docker version is could have been added by any other user/admin.
This would have to be limited to desktop only.
@therealtimex commented on GitHub (Apr 5, 2025):
I understand your point about the Docker environment limitations, but I think there might be a middle-ground solution using database storage. Instead of directly linking to local files (which wouldn't work in Docker), the system could:
This approach would work consistently across both Docker and desktop environments since it doesn't rely on local filesystem access. The content would be stored within the application's data layer rather than depending on external file access.
For screenshots specifically, these could be stored as binary data in the database and rendered in a viewer when needed.
Would this alternative approach address the core need while maintaining compatibility with the Docker environment?
@timothycarambat commented on GitHub (Apr 5, 2025):
It has been mentioned many times historically, but there is a reason we do not do full copies of documents. The main reason is bloat since it would be document duplication. Often we can take a 30mb PDF and text extract it to a couple hundred kb. After a document has been uploaded this text-only copy is present though, and we could show the raw data of that, but certainly not within a native viewer on the user side.
It would probably look more like the raw.githubusercontent kind of links, where it just shows the raw text. Often though we will strip readable whitespace since that does not impact LLM inference - so the text may not be human-readable doing this.