Open NDMAXX opened 1 month ago
I have the same problem,can anyone tell me how to solve it?
I encountered the same problem while using Ollama in Danswer but managed to resolve it. The issue stems from the pip dependency for litellm
being upgraded, while Danswer's pip version is fixed and doesn't upgrade automatically.
To fix this issue, follow these steps:
backend/requirements/default.txt
file.litellm==1.37.7
to litellm==1.39.3
.openai
is set to version 1.30.5
.This should resolve the problem.
I have changed the default,ext as: litellm==1.39.3 llama-index==0.9.45 Mako==1.2.4 msal==1.26.0 nltk==3.8.1 Office365-REST-Python-Client==2.5.9 oauthlib==3.2.2 openai==1.30.5
AND restart docker,BUT the problem still exists
If the context you provide is too long, you might encounter this error. This is a known bug in Danswer, occurring, for example, when the uploaded PDF file exceeds 4096 tokens.
If you have updated litellm
, first test if you can successfully add new local models. If adding models works, then try a simple conversation without providing too much context at once.
I solve the problem,after changing default.ext,you should rebulid the containers
I encountered the same problem while using Ollama in Danswer but managed to resolve it. The issue stems from the pip dependency for
litellm
being upgraded, while Danswer's pip version is fixed and doesn't upgrade automatically.To fix this issue, follow these steps:
- Locate the
backend/requirements/default.txt
file.- Change
litellm==1.37.7
tolitellm==1.39.3
.- Ensure
openai
is set to version1.30.5
.This should resolve the problem.
Thx, I have solved the problem. May i know when will this version or more suitable version will be fixed in main pipline?
After I LLM Setup ollama source by Custom LLM Provider, both Danswer and Paraphrase assistant can work, but gpt assistant can not work like this:![image](https://github.com/danswer-ai/danswer/assets/20364759/34e20c6c-1254-49d5-bbd4-72837825a56c)
My ollama setup:![image](https://github.com/danswer-ai/danswer/assets/20364759/9ab8dcd4-9fbb-4ba0-92ee-a476b7d833f6)
Logs for api_server: