mirror of
https://github.com/Mintplex-Labs/anything-llm.git
synced 2026-03-02 22:57:05 -05:00
[BUG]: Files uploaded to thread aren't recognised as files by the LLM #2990
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#2990
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 @scottybo on GitHub (Nov 19, 2025).
Originally assigned to: @timothycarambat on GitHub.
How are you running AnythingLLM?
Docker (local)
What happened?
If a user uploads a file to the thread (not the workspace), then talks about "the file", the LLM will respond saying it doesn't have a file.
See example conversation below:
Are there known steps to reproduce?
No response
@angelplusultra commented on GitHub (Nov 20, 2025):
If possible, can you provide the file you are using so we can reproduce the bug? Also, what model and provider are you using?
@timothycarambat commented on GitHub (Nov 20, 2025):
Is this reproduction incorrect? Made a new thread, dropped in a file and ran a chat, even cleared and re-ran the prompt. It knew there was a file?
https://github.com/user-attachments/assets/ad22e4ca-e9a5-45fc-96f6-ca90409d2ed5
@scottybo commented on GitHub (Nov 24, 2025):
@timothycarambat the issue happens if the file isn't uploaded in the initial message.
So if you start a chat "Hey, I'd like your help with a putting together a report", and then the AI responds, and then you reply with "Here's the file" it responds saying it doesn't know about the file.
In the screenshot below, I didn't include any files in my first message, but did in the second.
@timothycarambat commented on GitHub (Nov 24, 2025):
The way I was able to reproduce this was to ask a qualifying question, then upload the document as seen above.
Seems the context in the system prompt is seemingly ignored by Gemini in this instance. I was able to reproduce this with OpenAI models as well
@priyanksperidian commented on GitHub (Nov 26, 2025):
I have the same issue. I have faced it multiple times now. I am using Azure openai model.
@dundunn commented on GitHub (Feb 11, 2026):
This seems to be the case with nearly all models. gpt-5 itself can't read any attachments beyond the first one, but gpt-5.1 can most of the time. gemini-2.5-flash can't read any attachments, but gemini-3-flash-preview can read attachments nearly all the time. However if the thread gets long enough they suddenly lose the ability to read attachments again. This is very weird behavior. I was used to using the feature in Open-WebUI where it simply works with every model I tested.
Also one would think the agent should at least be able to do this, since summarizing documents is a default agent skill, but it even performs worse by never being able to read any attachments.