huggingface / chat-ui

Open source codebase powering the HuggingChat app
https://huggingface.co/chat
Apache License 2.0
7.61k stars 1.12k forks source link

Web search fetch failed #584

Open fpsprohd opened 11 months ago

fpsprohd commented 11 months ago

I am getting fetch failed constantly i have tried several different internet connections different devices as well as a different browser same issue

iChristGit commented 11 months ago

Does it always fail for specific search? if you press the web-search icon, does it say "no text found on first 5 results" ? Also, do you use API or fetching it all locally?

fpsprohd commented 11 months ago

No it does not say no text found and it fails like 98% of the time and i am not sure if i am using api or local

iChristGit commented 11 months ago

No it does not say no text found and it fails like 98% of the time and i am not sure if i am using api or local

That is probably the issue, you either need to set USE_LOCAL_WEBSEARCH=true in your local.env or set up an API to use it. Also make sure your chattemplate is set up for the model you are using.

fpsprohd commented 11 months ago

Where do i do that at?

fpsprohd commented 11 months ago

I am using the chat-ui built into hugging faces website i am not creating my own build

fpsprohd commented 11 months ago

Do i have to create my own build of it?

iChristGit commented 11 months ago

I am using the chat-ui built into hugging faces website i am not creating my own build

Can you share a screen shot of exactly the search and what it scarpes in the site? It should work on huggingface.co/chat

fpsprohd commented 11 months ago

It does not for me tho

fpsprohd commented 11 months ago

Screenshot_20231128_092524_Chrome Screenshot_20231128_092528_Chrome

fpsprohd commented 11 months ago

But it does this with every search i try

iChristGit commented 11 months ago

But it does this with every search i try

I just tried on hugginface.co/chat and indeed its always failing, When I do it locally on my machine its working fine, so its might be worth it for you to set it up locally.

fpsprohd commented 11 months ago

How do i set up this locally?

iChristGit commented 11 months ago

How do i set up this locally?

Follow the main page of this repo, you need to install Docker Dekstop , and use llamacpp server. il help you with the env.local file once you got there

Lippiece commented 10 months ago

Experiencing this now. Interestingly, when I expand the search process, it seems to successfully make a query and browse pages, then fetch failed.

Anything I can share to help debugging?

fpsprohd commented 10 months ago

Same issue here

On Sat, Dec 30, 2023, 3:57 PM Alex @.***> wrote:

Experiencing this now. Interestingly, when I expand the search process, it seems to successfully make a query and browse pages, then fetch failed.

Anything I can share to help debugging?

— Reply to this email directly, view it on GitHub https://github.com/huggingface/chat-ui/issues/584#issuecomment-1872614122, or unsubscribe https://github.com/notifications/unsubscribe-auth/AHX6HABDQLAWA7W45VJHYQTYMCE6JAVCNFSM6AAAAAA72TOHW2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNZSGYYTIMJSGI . You are receiving this because you authored the thread.Message ID: @.***>

flurb18 commented 10 months ago

Screenshot_20240108_023309 I get this with every search. Using SerpAPI, it browses some pages then gets to "extracting relevant information" and fetch failed.

idk99a commented 9 months ago

I've been trying to troubleshoot this issue for a few days. If anyone has a solution I'd love to hear it. It doesn't work with Searxng, or local search. When using the actually huggingchat app web search works flawless.

iChristGit commented 9 months ago

I've been trying to troubleshoot this issue for a few days. If anyone has a solution I'd love to hear it. It doesn't work with Searxng, or local search. When using the actually huggingchat app web search works flawless.

You need to give more information, copy paste your env.local for example locally it works for me. If you use Mixtral its seems like there is an issue with how it searches, but other models do work.

bruvduroiu commented 7 months ago

The "Extracting relevant information" part uses embedding models to select the information for retrieval. It seems like your TEXT_EMBEDDING_MODELS configuration might be where your problem lies

Vendetta-S commented 6 months ago

This might not be relevant but I also sometimes get a "Failed to parse webpage" which was a issue already raise in october of last year https://discuss.huggingface.co/t/web-parsing-in-huggingchat/58049 I don't know what's wrong with it, as it can pretty much hallucinate even with models that can use the search web feature...