ParisNeo / lollms-webui

Lord of Large Language Models Web User Interface
https://parisneo.github.io/lollms-webui/
Apache License 2.0
4.11k stars 522 forks source link

Personality is not working #198

Closed kdqemre closed 1 year ago

kdqemre commented 1 year ago

I have installed gpt4allinternetv0 personality tool. this is the exception

Exception in thread Thread-1 (start_message_generation): Traceback (most recent call last): File "/opt/homebrew/Cellar/python@3.10/3.10.11/Frameworks/Python.framework/Versions/3.10/lib/python3.10/threading.py", line 1016, in _bootstrap_inner self.run() File "/opt/homebrew/Cellar/python@3.10/3.10.11/Frameworks/Python.framework/Versions/3.10/lib/python3.10/threading.py", line 953, in run self._target(*self._args, **self._kwargs) File "/Users/kadkoy/Desktop/GPT4ALL-webui/gpt4all-ui/gpt4all_api/api.py", line 666, in start_message_generation self.discussion_messages = self.prepare_query(message_id) File "/Users/kadkoy/Desktop/GPT4ALL-webui/gpt4all-ui/gpt4all_api/api.py", line 564, in prepare_query preprocessed_prompt = self.personality.processor.process_model_input(message["content"]) File "/Users/kadkoy/Desktop/GPT4ALL-webui/gpt4all-ui/personalities/English/internet/gpt4internetv0/scripts/processor.py", line 118, in process_model_input return "### Search engine:\n"+str(self.internet_search(text))+"### Human:\n"+text File "/Users/kadkoy/Desktop/GPT4ALL-webui/gpt4all-ui/personalities/English/internet/gpt4internetv0/scripts/processor.py", line 94, in internet_search results = extractresults(f"https://duckduckgo.com/?q={query}&t=h&ia=web", self.personality._processor_cfg["num_results"]) File "/Users/kadkoy/Desktop/GPT4ALL-webui/gpt4all-ui/personalities/English/internet/gpt4internetv0/scripts/processor.py", line 40, in extract_results li_tags = ol_tag.find_all("li") AttributeError: 'NoneType' object has no attribute 'find_all'

ParisNeo commented 1 year ago

If this is not a problem can you tell me what is the prompt you asked for so that I can test it?

kdqemre commented 1 year ago

If this is not a problem can you tell me what is the prompt you asked for so that I can test it?

I tried several prompt. what is the latest discovery of james webb telescope? Who is the president of USA What is the result of Turkish presidental elections

Nothing works. Model i am using GPT4ALL v1.3 groovy. here another exception

Received message : What is the current Bitcoin price

Searchengine results :

Generating message

LLModel.generate() got an unexpected keyword argument 'streaming'

Done

kdqemre commented 1 year ago

I'm trying different models but nothing works properly. Now i'm getting wrong aswers. I saw you getting proper answers. Please can you explain which models and settings you are using. I have tried wizardLM, GPT4ALL 1.3 groovy . Is there any dependincies for to install Internet personality. i did not figure out what am i missing

Ekran Resmi 2023-05-19 15 00 37 Ekran Resmi 2023-05-19 14 57 59
kdqemre commented 1 year ago

Solution:

If you have driver error in your terminal, install chrome. Any other browsers not working even if chromium based ones. And update the Pesonality files. On macbook there is compatibility problem for the latest one. Consider this isseu.

ParisNeo commented 1 year ago

Hi, sorry for that. You just need to update your gpt4all library: pip install --upgrade gpt4all