mirror of
https://github.com/langgenius/dify-official-plugins.git
synced 2026-07-22 01:55:27 -04:00
Ollama Embedding model embed documents error #116
Reference in New Issue
Block a user
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 @Sakura4036 on GitHub (Mar 24, 2025).
Self Checks
Dify version
1.12
Cloud or Self Hosted
Self Hosted (Source)
Steps to reproduce
✔️ Expected Behavior
embed documents success
❌ Actual Behavior
dify celery log
@Sakura4036 commented on GitHub (Mar 24, 2025):
Zhipu text embedding model is useful.
@dosubot[bot] commented on GitHub (Mar 24, 2025):
I found a similar discussion that might be relevant to your issue. In the thread titled Adding a local ollama model error, it was suggested to upgrade the Ollama to the latest version and use the new endpoint
api/embedas the old oneapi/embedingshas been deprecated [1].Additionally, the "Bad Request Error, 500 Server Error: Internal Server Error" could be caused by the Ollama service not being accessible from the Docker container. To resolve this, replace
localhostwithhost.docker.internalin the service URL to ensure the Docker container can access the Ollama service running on the host machine:If you are using macOS, you may need to set the
OLLAMA_HOSTenvironment variable usinglaunchctl:For Linux, edit the systemd service to include the environment variable:
And for Windows, set the
OLLAMA_HOSTenvironment variable through the system settings [2].To continue talking to Dosu, mention @dosu.
Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Bug Report | Other
@Sakura4036 commented on GitHub (Mar 24, 2025):
ollama embedding test
@darkSuperman commented on GitHub (Mar 24, 2025):
I have the same problem. I guess it may be a problem with dify, because adding a PDF file will cause this problem, but adding a txt file is successful. And I also tested it through the
ollamainterfacehttp://xxxxxx:11434/api/embedand it is OK@Sakura4036 commented on GitHub (Mar 25, 2025):
Oh, thanks for your txt file test, which made the issue clearer.
@dosubot[bot] commented on GitHub (Apr 25, 2025):
Hi, @Sakura4036. I'm Dosu, and I'm helping the Dify team manage their backlog. I'm marking this issue as stale.
Issue Summary
Next Steps
Thank you for your understanding and contribution!
@ultradawn commented on GitHub (Nov 20, 2025):
I have faced same issue and solved it after downgrade the ollama version to 0.11.11