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

"Zero results found for the search query." when running SearchGraph #897

Open
KaaustaaubShankar opened this issue Jan 16, 2025 · 5 comments
Labels
bug Something isn't working

Comments

@KaaustaaubShankar
Copy link

Describe the bug
When I attempt to use SearchGraph through run(), I am given "Zero results found for the search query"

To Reproduce
Steps to reproduce the behavior:

  1. Go to the Google Colab Notebook linked in the README
  2. Add your open-ai key
  3. Attempt to run the SearchGraph code

Expected behavior
The answer of the prompt in json form. In this case it should have been "European Countries" with a list of the companies as the value.

Screenshots
If applicable, add screenshots to help explain your problem.
Image

Additional context
Add any other context about the problem here.

Copy link

dosubot bot commented Jan 16, 2025

Hey there, @KaaustaaubShankar! I'm here to help you with any bugs, questions, or contributions. Let's work together to solve the issue you're facing.

The "Zero results found for the search query" error occurs because the search_on_web function is returning an empty list, indicating no results were found for the generated search query. This can happen if the search query is not specific enough, the search engine does not return any results, or there are issues with the search engine configuration or API key [1].

To troubleshoot this issue, consider the following steps:

  1. Check the Search Query: Ensure that the search query is specific and correctly formatted. A vague or incorrect query might not yield any results.

  2. Search Engine Configuration: Verify that the search engine is correctly configured. The search_engine parameter can be set to "Google" or "DuckDuckGo". Make sure the chosen search engine is operational and accessible [2].

  3. API Key: If using a search engine that requires an API key (like Serper for Google), ensure that the serper_api_key is valid and correctly set [2].

  4. Proxy Settings: If a proxy is being used, check that it is correctly configured and operational. The default is None, meaning no proxy is used unless specified [2].

By addressing these areas, you should be able to resolve the issue and obtain the expected search results.

To continue talking to Dosu, mention @dosu.


Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Other

@dosubot dosubot bot added the bug Something isn't working label Jan 16, 2025
@Jdh235
Copy link

Jdh235 commented Jan 17, 2025

I am also experiencing the same issue, using the google colab scrapegraphai demo. A few days ago SearchGraph worked correctly, now I am getting the same error.

@Kilowhisky
Copy link

Kilowhisky commented Jan 17, 2025

Yea, I just started getting this on every request today. Yesterday I wasn't having the problem. Looks like the google search package is having problems.

Edit: Here is the issue on the googlesearch package.

Nv7-GitHub/googlesearch#95

@Bradley10555
Copy link

I thought it was only me lmao I was like tryna adjust me code constantly until I realised that it happened to everyone xD

@wineszter
Copy link

Adding "search_engine": "duckduckgo" to the graph config helps (if you don't insist using google)

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

No branches or pull requests

5 participants