You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Danswer fails to respond. Search & Chat Tab both are broken ("/usr/local/lib/python3.11/site-packages/litellm/llms/ollama.py", line 380, in ollama_completion_stream raise OllamaError( litellm.llms.ollama.OllamaError: b'')
#3430
Open
MyCodeBits opened this issue
Dec 11, 2024
· 0 comments
2024-12-11 11:46:19 ERROR: 12/11/2024 07:46:19 PM query_backend.py 283: Error in search answer streaming
2024-12-11 11:46:19 Traceback (most recent call last):
2024-12-11 11:46:19 File "/app/danswer/server/query_and_chat/query_backend.py", line 275, in stream_generator
2024-12-11 11:46:19 for packet in stream_search_answer(
2024-12-11 11:46:19 File "/app/danswer/utils/timing.py", line 70, in wrapped_func
2024-12-11 11:46:19 value = next(gen)
2024-12-11 11:46:19 ^^^^^^^^^
2024-12-11 11:46:19 File "/app/danswer/one_shot_answer/answer_question.py", line 368, in stream_search_answer
2024-12-11 11:46:19 for obj in objects:
2024-12-11 11:46:19 File "/app/danswer/one_shot_answer/answer_question.py", line 267, in stream_answer_objects
2024-12-11 11:46:19 for packet in cast(AnswerObjectIterator, answer.processed_streamed_output):
2024-12-11 11:46:19 File "/app/danswer/llm/answering/answer.py", line 281, in processed_streamed_output
2024-12-11 11:46:19 for processed_packet in self._get_response([llm_call]):
2024-12-11 11:46:19 File "/app/danswer/llm/answering/answer.py", line 186, in _get_response
2024-12-11 11:46:19 yield from self._handle_specified_tool_call(llm_calls, tool, tool_args)
2024-12-11 11:46:19 File "/app/danswer/llm/answering/answer.py", line 164, in _handle_specified_tool_call
2024-12-11 11:46:19 yield from self._get_response(llm_calls + [new_llm_call])
2024-12-11 11:46:19 File "/app/danswer/llm/answering/answer.py", line 245, in _get_response
2024-12-11 11:46:19 yield from response_handler_manager.handle_llm_response(stream)
2024-12-11 11:46:19 File "/app/danswer/llm/answering/llm_response_handler.py", line 69, in handle_llm_response
2024-12-11 11:46:19 for message in stream:
2024-12-11 11:46:19 File "/app/danswer/llm/chat_llm.py", line 459, in _stream_implementation
2024-12-11 11:46:19 for part in response:
2024-12-11 11:46:19 File "/usr/local/lib/python3.11/site-packages/litellm/llms/ollama.py", line 427, in ollama_completion_stream
2024-12-11 11:46:19 raise e
2024-12-11 11:46:19 File "/usr/local/lib/python3.11/site-packages/litellm/llms/ollama.py", line 380, in ollama_completion_stream
2024-12-11 11:46:19 raise OllamaError(
2024-12-11 11:46:19 litellm.llms.ollama.OllamaError: b''
Chat Tab:
Clicking on Summarize the Doc:
The following error is seen:
Stack Trace:
Traceback (most recent call last):
File "/app/danswer/chat/process_message.py", line 644, in stream_chat_message_objects
for packet in answer.processed_streamed_output:
File "/app/danswer/llm/answering/answer.py", line 281, in processed_streamed_output
for processed_packet in self._get_response([llm_call]):
File "/app/danswer/llm/answering/answer.py", line 245, in _get_response
yield from response_handler_manager.handle_llm_response(stream)
File "/app/danswer/llm/answering/llm_response_handler.py", line 69, in handle_llm_response
for message in stream:
File "/app/danswer/llm/chat_llm.py", line 459, in _stream_implementation
for part in response:
File "/usr/local/lib/python3.11/site-packages/litellm/llms/ollama.py", line 427, in ollama_completion_stream
raise e
File "/usr/local/lib/python3.11/site-packages/litellm/llms/ollama.py", line 380, in ollama_completion_stream
raise OllamaError(
litellm.llms.ollama.OllamaError: b''
Any inputs on how can i go pass the issue ?
The text was updated successfully, but these errors were encountered:
Initial Setup details:
ollama run llama3.1
Issues:
Following the quickstart doc to run, below are the issues I am witnessing:
Issue:
AI Answer
spins, is able to search some docs, but finally bails out without response.Logs from Container
danswer-stack-api_server-1
:Error logs - Container - danswer-stack-api_server-1.md
Last Stack Trace seen in above log file:
Clicking on
Summarize the Doc
:The following error is seen:
Stack Trace:
Any inputs on how can i go pass the issue ?
The text was updated successfully, but these errors were encountered: