[GH-ISSUE #3291] [BUG]: can't upload .pdf or .docx files that are only 2~3MB with ollama embedding #2114

Closed
opened 2026-02-22 18:28:12 -05:00 by yindo · 5 comments
Owner

Originally created by @zxjhellow2 on GitHub (Feb 20, 2025).
Original GitHub issue: https://github.com/Mintplex-Labs/anything-llm/issues/3291

How are you running AnythingLLM?

Docker (remote machine)

What happened?

Image

Are there known steps to reproduce?

some settings:

Image

Image

the steps to run AnythingLLM
export STORAGE_LOCATION=/home/zhaojh/anythingllm &&
mkdir -p $STORAGE_LOCATION &&
touch "$STORAGE_LOCATION/.env"

sudo docker run -d -p 3001:3001
--cap-add SYS_ADMIN
-v ${STORAGE_LOCATION}:/app/server/storage
-v ${STORAGE_LOCATION}/.env:/app/server/.env
-e STORAGE_DIR="/app/server/storage"
mintplexlabs/anythingllm

and then run the docker container
docker run -d
--name anythingllm
--add-host=host.docker.internal:host-gateway
--env STORAGE_DIR=/app/server/storage
--health-cmd "/bin/bash /usr/local/bin/docker-healthcheck.sh || exit 1"
--health-interval 60s
--health-start-period 60s
--health-timeout 10s
-p 3001:3001/tcp
--restart=always
--user anythingllm
-v ${STORAGE_LOCATION}:/app/server/storage
-v ${STORAGE_LOCATION}/.env:/app/server/.env
-w /app
mintplexlabs/anythingllm

Originally created by @zxjhellow2 on GitHub (Feb 20, 2025). Original GitHub issue: https://github.com/Mintplex-Labs/anything-llm/issues/3291 ### How are you running AnythingLLM? Docker (remote machine) ### What happened? ![Image](https://github.com/user-attachments/assets/9014fd96-2576-4ea3-b7b0-563b515dbc4b) ### Are there known steps to reproduce? some settings: ![Image](https://github.com/user-attachments/assets/60fa0ee6-2362-45af-80b5-bda4303c511e) ![Image](https://github.com/user-attachments/assets/22ece0c2-abf9-4a75-ab73-9ee991077152) **the steps to run AnythingLLM** export STORAGE_LOCATION=/home/zhaojh/anythingllm && \ mkdir -p $STORAGE_LOCATION && \ touch "$STORAGE_LOCATION/.env" sudo docker run -d -p 3001:3001 \ --cap-add SYS_ADMIN \ -v ${STORAGE_LOCATION}:/app/server/storage \ -v ${STORAGE_LOCATION}/.env:/app/server/.env \ -e STORAGE_DIR="/app/server/storage" \ mintplexlabs/anythingllm **and then run the docker container** docker run -d \ --name anythingllm \ --add-host=host.docker.internal:host-gateway \ --env STORAGE_DIR=/app/server/storage \ --health-cmd "/bin/bash /usr/local/bin/docker-healthcheck.sh || exit 1" \ --health-interval 60s \ --health-start-period 60s \ --health-timeout 10s \ -p 3001:3001/tcp \ --restart=always \ --user anythingllm \ -v ${STORAGE_LOCATION}:/app/server/storage \ -v ${STORAGE_LOCATION}/.env:/app/server/.env \ -w /app \ mintplexlabs/anythingllm
yindo added the possible bug label 2026-02-22 18:28:12 -05:00
yindo closed this issue 2026-02-22 18:28:12 -05:00
Author
Owner

@zxjhellow2 commented on GitHub (Feb 20, 2025):

I try the other embedding models,it is solved.
I really want to know the principles for choosing embedding models.

@zxjhellow2 commented on GitHub (Feb 20, 2025): I try the other embedding models,it is solved. I really want to know the principles for choosing embedding models.
Author
Owner

@zxjhellow2 commented on GitHub (Feb 20, 2025):

I try the other embedding models,it is solved. I really want to know the principles for choosing embedding models.
Today I tried to use nomic-embed-text:latest as an embedding model in ollama, after uploading some of the data. Continuing to upload the file caused the same problem.

Image

Image

@zxjhellow2 commented on GitHub (Feb 20, 2025): > I try the other embedding models,it is solved. I really want to know the principles for choosing embedding models. Today I tried to use nomic-embed-text:latest as an embedding model in ollama, after uploading some of the data. Continuing to upload the file caused the same problem. ![Image](https://github.com/user-attachments/assets/d5e7299d-0a23-4c49-b9dd-1a22362ea8e0) ![Image](https://github.com/user-attachments/assets/1ed235c1-ea2a-4fc8-b072-2dc1ad5196da)
Author
Owner

@zxjhellow2 commented on GitHub (Feb 20, 2025):

I've tried other files and I've noticed that some files will upload and some won't, is there a requirement for the file?

@zxjhellow2 commented on GitHub (Feb 20, 2025): I've tried other files and I've noticed that some files will upload and some won't, is there a requirement for the file?
Author
Owner

@timothycarambat commented on GitHub (Feb 21, 2025):

It would appear that if that specific model is not working that the result object is incorrect. Are you able to embed text via Ollama's API directly - it appears the response object is not typical from the embedding model's output. I have not used that model before so i am not aware of its nuance

@timothycarambat commented on GitHub (Feb 21, 2025): It would appear that if that specific model is not working that the result object is incorrect. Are you able to embed text via Ollama's API directly - it appears the response object is not typical from the embedding model's output. I have not used that model before so i am not aware of its nuance
Author
Owner

@zxjhellow2 commented on GitHub (Feb 21, 2025):

It would appear that if that specific model is not working that the result object is incorrect. Are you able to embed text via Ollama's API directly - it appears the response object is not typical from the embedding model's output. I have not used that model before so i am not aware of its nuance如果特定模型不起作用,则结果对象似乎不正确。你能直接通过Ollama的API嵌入文本吗?从嵌入模型的输出来看,响应对象并不典型。我以前没有用过这个模型,所以我不知道它的细微差别

Ok, I'll try to embed the quiz with ollama's api afterward. Thank you

@zxjhellow2 commented on GitHub (Feb 21, 2025): > It would appear that if that specific model is not working that the result object is incorrect. Are you able to embed text via Ollama's API directly - it appears the response object is not typical from the embedding model's output. I have not used that model before so i am not aware of its nuance如果特定模型不起作用,则结果对象似乎不正确。你能直接通过Ollama的API嵌入文本吗?从嵌入模型的输出来看,响应对象并不典型。我以前没有用过这个模型,所以我不知道它的细微差别 Ok, I'll try to embed the quiz with ollama's api afterward. Thank you
yindo changed title from [BUG]: can't upload .pdf or .docx files that are only 2~3MB with ollama embedding to [GH-ISSUE #3291] [BUG]: can't upload .pdf or .docx files that are only 2~3MB with ollama embedding 2026-06-05 14:44:38 -04:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Mintplex-Labs/anything-llm#2114