[GH-ISSUE #5395] Trying to use anythingLLM to query files and it's incompletely reading the files. #5065

Closed
opened 2026-06-05 14:51:48 -04:00 by yindo · 3 comments
Owner

Originally created by @chrisdraws on GitHub (Apr 9, 2026).
Original GitHub issue: https://github.com/Mintplex-Labs/anything-llm/issues/5395

Hello,
I'm trying to use your product for query a gitlab project. So far it is not working. I'm able to add the files to the workspace after importing them all from gitlab. I originally tried saving all of them, roughly 600 files, and that seemed to work, but then when trying to query them in anythingLLM it kept telling me it could not find anything but metadata for files and would not look inside their contents. So i removed all the files from the workspace and added 2 files that are html templates. I asked it several times to show me the files, it kept showing me truncated versions of the files and would not show me the entire contents. I have no idea what I'm doing wrong.

I'm running anythingLLM inside of a docker container in an Amazon EC2 instance and i'm pointing it at an LLM running inside of a GPU powered Amazon EC2 instance.

It can't even correctly answer questions like "show me the html divs that inside of the workspace" "Tell me what files are in the workspace" "Show me the html img tags that are in the workspace" "Look at xyz.hml file and show me the contents"

Are there additional instructions or settings that are not clearly being exposed in your documentation and tutorials that will make this run correctly?

Originally created by @chrisdraws on GitHub (Apr 9, 2026). Original GitHub issue: https://github.com/Mintplex-Labs/anything-llm/issues/5395 Hello, I'm trying to use your product for query a gitlab project. So far it is not working. I'm able to add the files to the workspace after importing them all from gitlab. I originally tried saving all of them, roughly 600 files, and that seemed to work, but then when trying to query them in anythingLLM it kept telling me it could not find anything but metadata for files and would not look inside their contents. So i removed all the files from the workspace and added 2 files that are html templates. I asked it several times to show me the files, it kept showing me truncated versions of the files and would not show me the entire contents. I have no idea what I'm doing wrong. I'm running anythingLLM inside of a docker container in an Amazon EC2 instance and i'm pointing it at an LLM running inside of a GPU powered Amazon EC2 instance. It can't even correctly answer questions like "show me the html divs that inside of the workspace" "Tell me what files are in the workspace" "Show me the html img tags that are in the workspace" "Look at xyz.hml file and show me the contents" Are there additional instructions or settings that are not clearly being exposed in your documentation and tutorials that will make this run correctly?
yindo closed this issue 2026-06-05 14:51:48 -04:00
Author
Owner

@timothycarambat commented on GitHub (Apr 9, 2026):

So i removed all the files from the workspace and added 2 files that are html templates.

Are you embedding these files or draggin and dropping them into the workspace. There is a nuance may miss about RAG vs full context. Sounds like you want full context, not RAG.

If you do want RAG on the files, then you will probably want to enable reranking

Lastly, what provider/model are you using for this? Context window matters a lot here and if it is something tiny, youre also going to be limited by that since we will need to truncate content out of the context to make sure the chat does not fail.

<!-- gh-comment-id:4215985983 --> @timothycarambat commented on GitHub (Apr 9, 2026): > So i removed all the files from the workspace and added 2 files that are html templates. Are you _embedding_ these files or draggin and dropping them into the workspace. There is a [nuance](https://docs.anythingllm.com/chatting-with-documents/introduction) may miss about RAG vs full context. Sounds like you want full context, not RAG. If you do want RAG on the files, then you will probably want to enable [reranking](https://docs.anythingllm.com/chatting-with-documents/introduction#vector-database-settings--search-preference-reranking) Lastly, what provider/model are you using for this? Context window matters a lot here and if it is something tiny, youre also going to be limited by that since we will need to truncate content out of the context to make sure the chat does not fail.
Author
Owner

@chrisdraws commented on GitHub (Apr 9, 2026):

Thanks Tim, really appreciate the quick response! I was done working on this for the day, but might have time to review it again this evening of if not it will be first thing tomorrow morning. I'll check those things and get back to you.

<!-- gh-comment-id:4216038542 --> @chrisdraws commented on GitHub (Apr 9, 2026): Thanks Tim, really appreciate the quick response! I was done working on this for the day, but might have time to review it again this evening of if not it will be first thing tomorrow morning. I'll check those things and get back to you.
Author
Owner

@chrisdraws commented on GitHub (Apr 10, 2026):

Hi again Timothy,

So I'm still not sure why this isn't working as expected. I'm running AnythingLLM on an ec2 instance using your docker instructions for linux, a g4dn.xlarge, and running my LLM using vllm in a docker container, qwen-14b, on another ec2 instance, a g6.xlarge.

My project I'm importing from gitlab is about 600 files a python flask project.

The only way I seem to be able to get anythingLLM to answer questions about files is if I pin them to the workspace, rather than save/embed them. And the answer it gives when the files are pinned are usually pretty relevant, but I would assume that pinning files is not the way this is supposed to always be used.

When I ask anythingLLM questions about the files, it basically answers questions based on 4 files .. rather than other files.

If I remove all the files from the workspace and add one or 2 html templates, it will sometimes answer questions about that file without pinning it, but it will truncate the html it's returning and remove content.

I've looked at a few different tutorials and been asking chatgpt for guidance, but so far I'm not able to get this to work as I've seen other examples... I think in youtube.

I'm very excited about the idea of using anythingLLM, but I think I'm missing something, and or I might just not be at a level to be able to use it.

I thank you for your help.

Maybe there is a tutorial you know of that could explain this to me and i could just go from there. I feel like what i'm trying to do is fairly simple.

And these are the tutorial videos that I had watched that led me to try to do this.

I'm trying to achieve a similar result where in one of the videos the user is searching for the word "Enter" and finding all the uses of it in their codebase.

https://www.youtube.com/watch?v=9ixpCHZ9R7g
https://www.youtube.com/watch?v=unPhOGyduWo
https://www.youtube.com/watch?v=pSYEcJTt4t4
https://www.youtube.com/watch?v=-Rs8-M-xBFI

<!-- gh-comment-id:4226643985 --> @chrisdraws commented on GitHub (Apr 10, 2026): Hi again Timothy, So I'm still not sure why this isn't working as expected. I'm running AnythingLLM on an ec2 instance using your docker instructions for linux, a g4dn.xlarge, and running my LLM using vllm in a docker container, qwen-14b, on another ec2 instance, a g6.xlarge. My project I'm importing from gitlab is about 600 files a python flask project. The only way I seem to be able to get anythingLLM to answer questions about files is if I pin them to the workspace, rather than save/embed them. And the answer it gives when the files are pinned are usually pretty relevant, but I would assume that pinning files is not the way this is supposed to always be used. When I ask anythingLLM questions about the files, it basically answers questions based on 4 files .. rather than other files. If I remove all the files from the workspace and add one or 2 html templates, it will sometimes answer questions about that file without pinning it, but it will truncate the html it's returning and remove content. I've looked at a few different tutorials and been asking chatgpt for guidance, but so far I'm not able to get this to work as I've seen other examples... I think in youtube. I'm very excited about the idea of using anythingLLM, but I think I'm missing something, and or I might just not be at a level to be able to use it. I thank you for your help. Maybe there is a tutorial you know of that could explain this to me and i could just go from there. I feel like what i'm trying to do is fairly simple. And these are the tutorial videos that I had watched that led me to try to do this. I'm trying to achieve a similar result where in one of the videos the user is searching for the word "Enter" and finding all the uses of it in their codebase. https://www.youtube.com/watch?v=9ixpCHZ9R7g https://www.youtube.com/watch?v=unPhOGyduWo https://www.youtube.com/watch?v=pSYEcJTt4t4 https://www.youtube.com/watch?v=-Rs8-M-xBFI
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Mintplex-Labs/anything-llm#5065