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
Hi, when I used the example code to test the assistant, it occured some error.
rag_assistant = get_rag_assistant(llm_model='llama3:8b')
response = ""
for delta in rag_assistant.run('who are you?'):
response += delta # type: ignore
for delta in rag_assistant.run('who are you?'):
File "C:\Users\admin\miniconda3\envs\agent\lib\site-packages\phi\assistant\assistant.py", line 890, in _run
for response_chunk in self.llm.response_stream(messages=llm_messages):
File "C:\Users\admin\miniconda3\envs\agent\lib\site-packages\phi\llm\ollama\chat.py", line 229, in response_stream
for response in self.invoke_stream(messages=messages):
File "C:\Users\admin\miniconda3\envs\agent\lib\site-packages\phi\llm\ollama\chat.py", line 95, in invoke_stream
yield from self.client.chat(
File "C:\Users\admin\miniconda3\envs\agent\lib\site-packages\ollama_client.py", line 88, in stream
partial = json.loads(line)
File "C:\Users\admin\miniconda3\envs\agent\lib\json_init.py", line 346, in loads
return _default_decoder.decode(s)
File "C:\Users\admin\miniconda3\envs\agent\lib\json\decoder.py", line 337, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "C:\Users\admin\miniconda3\envs\agent\lib\json\decoder.py", line 355, in raw_decode
raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
The text was updated successfully, but these errors were encountered:
Hi, when I used the example code to test the assistant, it occured some error.
rag_assistant = get_rag_assistant(llm_model='llama3:8b')
response = ""
for delta in rag_assistant.run('who are you?'):
response += delta # type: ignore
for delta in rag_assistant.run('who are you?'):
File "C:\Users\admin\miniconda3\envs\agent\lib\site-packages\phi\assistant\assistant.py", line 890, in _run
for response_chunk in self.llm.response_stream(messages=llm_messages):
File "C:\Users\admin\miniconda3\envs\agent\lib\site-packages\phi\llm\ollama\chat.py", line 229, in response_stream
for response in self.invoke_stream(messages=messages):
File "C:\Users\admin\miniconda3\envs\agent\lib\site-packages\phi\llm\ollama\chat.py", line 95, in invoke_stream
yield from self.client.chat(
File "C:\Users\admin\miniconda3\envs\agent\lib\site-packages\ollama_client.py", line 88, in stream
partial = json.loads(line)
File "C:\Users\admin\miniconda3\envs\agent\lib\json_init.py", line 346, in loads
return _default_decoder.decode(s)
File "C:\Users\admin\miniconda3\envs\agent\lib\json\decoder.py", line 337, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "C:\Users\admin\miniconda3\envs\agent\lib\json\decoder.py", line 355, in raw_decode
raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
The text was updated successfully, but these errors were encountered: