Skip to content
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

USE_LOCAL_WEBSEARCH No results found for this search query #1772

Open
brechtm opened this issue Mar 25, 2025 · 3 comments
Open

USE_LOCAL_WEBSEARCH No results found for this search query #1772

brechtm opened this issue Mar 25, 2025 · 3 comments
Labels
bug Something isn't working help wanted Extra attention is needed websearch

Comments

@brechtm
Copy link

brechtm commented Mar 25, 2025

Bug description

With USE_LOCAL_WEBSEARCH=true, Web Search always reports No results found for this search query.

Steps to reproduce

  • enable search
  • enter and submit question

Screenshots

Image

Context

I'm running chat-ui-db using podman on an M1 Macbook. I'm using LM Studio as the model provider.

podman run --rm --mount type=bind,source="$(pwd)/.env.local",target=/app/.env.local -v chat-ui:/data -p 3000:3000 ghcr.io/huggingface/chat-ui-db

Logs

{"level":50,"time":1742937489975,"pid":18,"hostname":"bbd76a6649ad","msg":"No results found for this search query"}

Specs

  • OS: macOS 15.3.1 (24D70)
  • Browser: Firefox 136.0.2 (aarch64)
  • chat-ui commit: ghcr.io/huggingface/chat-ui-db f679ed220b9b

Config

.env.local

HF_TOKEN=hf_...
MODELS=`[
  {
    "name": "LM Studio",
    "endpoints": [{
      "type" : "openai",
      "baseURL": "http://host.docker.internal:1234/v1"
    }],
  },
]`
USE_LOCAL_WEBSEARCH=true
WEBSEARCH_JAVASCRIPT=true
@brechtm brechtm added the bug Something isn't working label Mar 25, 2025
@nsarrazin
Copy link
Collaborator

Hi, the local websearch is always a bit brittle since you need to parse google results directly. Keeping it up to date is always a challenge so we recommend using a search provider if you can instead.

I can't really commit time to do it myself now but I'd be super happy to review a PR that fixes the local search however!

@nsarrazin nsarrazin added help wanted Extra attention is needed websearch labels Mar 26, 2025
@brechtm
Copy link
Author

brechtm commented Mar 26, 2025

I tried SERPER_API_KEY instead, but this reports the same error, No results found for this search query. I can see the API calls in the Serper activity log, however. Any hints on how I can debug this?

PS. I first looked at BING_SUBSCRIPTION_KEY, but MS no longer supports new Bing Search deployments.

@brechtm
Copy link
Author

brechtm commented Mar 26, 2025

Could this log entry be relevant?

{"level":40,"time":1743005435762,"pid":25,"hostname":"e653a132a251","msg":"No tokenizer found for model LM Studio, using default template. Consider setting tokenizer manually or making sure the model is available on the hub."}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed websearch
Projects
None yet
Development

No branches or pull requests

2 participants