-
Notifications
You must be signed in to change notification settings - Fork 122
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
Web search not working. #187
Comments
I also have different problems with web_search. Here's the info about the version of hugchat:
I have tried the following prompt first with
With
|
@Soulter if nobody works on this I can give it a try. |
@reflectored Please look into. I have the same issue as you do. |
hi, I've been a little bit busy recently so I didn't pay much attention to this issue timely, I'd appreciate it if you can work on this |
When Web Search tries multiple sites and encounters one or more "Failed to parse webpage" errors, it should ignore the error and carry on to try next site. However currently the error is caught and raised. That's why it crashes out. |
@cakemooner @Soulter Fixed it, did some refactoring as well #193. |
I published a new version v0.4.2 that fixed the bug. Thanks @reflectored |
I am using the outline provided in the readme, and I am able to access the site but its not able to search the web. When I ask it "todays news" it defaults to the date of August 13, 2023 and nor am I able to switch llm, it keeps defaulting to Mistral Ai, even when I specify
`chatbot.switch_llm(1) # Switch to the second model
Get information about the current conversation
#info = chatbot.get_conversation_info()
#print(info.id, info.title, info.model, info.system_prompt, info.history)
Assistant
`
and here is my version of the code I changed up a bit:
`from hugchat import hugchat
from hugchat.login import Login
Log in to huggingface and grant authorization to huggingchat
EMAIL = "[email protected]"
PASSWD = "Wordpass197900"
cookie_path_dir = "./cookies"
sign = Login(EMAIL, PASSWD)
cookies = sign.login(cookie_dir_path=cookie_path_dir, save_cookies=True)
Create your ChatBot
chatbot = hugchat.ChatBot(cookies=cookies.get_dict())
Function to get user input for query
def get_user_query():
query = input("Enter your query: ")
return query
Main loop
while True:
user_query = get_user_query()
if user_query.lower() == "quit":
break
Get information about the current conversation
#info = chatbot.get_conversation_info()
#print(info.id, info.title, info.model, info.system_prompt, info.history)
Assistant
`
The text was updated successfully, but these errors were encountered: