-
Notifications
You must be signed in to change notification settings - Fork 7.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix:error when adding the ollama embedding model #8236
Conversation
You can Fixes #8209 in Description. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It should be "true", otherwise it will report 500 error.
api/core/model_runtime/model_providers/ollama/text_embedding/text_embedding.py
Outdated
Show resolved
Hide resolved
Maybe fix #6493 |
Hi, actually I think "true" will cause 500 error |
Looks like it should be True. You can create a new PR. |
I changed that place in [api/core/model_runtime/model_providers/ollama/text_embedding/text_embedding.py] to True, but it still reports an error when adding the embedded model. |
我觉得可以尝试将 "options": {"use_mmap": True} 删除,我不太清楚它在这里起什么作用? |
Try to fix this one. #8128 |
It turns out that removing the option is the only way to run it, the error may be related to his version of ollama, there is no need to include options, I hope to remove options in the next api image upgrade, it's not convenient for windows users, thank you very much. |
* main: (141 commits) fix(workflow/hooks/use-shortcuts): resolve issue of copy shortcut not working in workflow debug and preview panel (#8249) chore: cleanup pycodestyle E rules (#8269) let claude models in bedrock support the response_format parameter (#8220) enhance: improve empty data display for detail panel (#8266) chore: remove useless code (#8198) chore: apply pep8-naming rules for naming convention (#8261) fix:ollama text embedding 500 error (#8252) Update Gitlab query field, add query by path (#8244) editor can also create api key (#8214) fix: upload img icon mis-align in the chat input area (#8263) fix: truthy value (#8208) fix(workflow): IF-ELSE nodes connected to the same subsequent node cause execution to stop (#8247) fix: workflow parallel limit in ifelse node (#8242) fix: CHECK_UPDATE_URL comment (#8235) fix:error when adding the ollama embedding model (#8236) fix: improving the regionalization of translation (#8231) feat: add from_variable_selector for stream chunk / message event (#8228) fix(workflow): answers are output simultaneously across different braches in the question classifier node. (#8225) fix(workflow): in multi-parallel execution with multiple conditional branches (#8221) fix(docker/docker-compose.yaml): Set default value for `REDIS_SENTINEL_SOCKET_TIMEOUT` and `CELERY_SENTINEL_SOCKET_TIMEOUT` (#8218) ...
I think you can check the Ollama logs to see if there are any errors. I highly recommend upgrading Ollama to the latest version. |
Co-authored-by: crazywoola <[email protected]>
Co-authored-by: crazywoola <[email protected]>
添加文档的时候依然会在80%左右的时候出现 ollama embedding 500 错误 |
Co-authored-by: crazywoola <[email protected]>
Checklist:
Important
Please review the checklist below before submitting your pull request.
dev/reformat
(backend) andcd web && npx lint-staged
(frontend) to appease the lint godsDescription
Describe the big picture of your changes here to communicate to the maintainers why we should accept this pull request. If it fixes a bug or resolves a feature request, be sure to link to that issue. Close issue syntax:
Fixes #<issue number>
, see documentation for more details.Fixes #8209
Type of Change
Testing Instructions
Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration