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

Tavily Search not being called correctly when running pip version #1164

Open
bveiseh opened this issue Feb 18, 2025 · 1 comment
Open

Tavily Search not being called correctly when running pip version #1164

bveiseh opened this issue Feb 18, 2025 · 1 comment

Comments

@bveiseh
Copy link

bveiseh commented Feb 18, 2025

Describe the bug
Tavily Search API is being called incorrectly by gpt-4o. Logs show 400 error. According to Tavily docs, 400 means malformed request.

To Reproduce
Used python and pip package to instantiate in a basic test script.
"Error: 400 Client Error: Bad Request for url: https://api.tavily.com/search. Failed fetching sources. Resulting in empty response."

Expected behavior
Researcher correctly calls the Tavily API to return search results on the topic.

Screenshots
N/A

Desktop (please complete the following information):
Linux Ubuntu 22.04
Cursor latest
no front end

@ElishaKay
Copy link
Collaborator

ElishaKay commented Feb 18, 2025

Welcome @bveiseh

There are a couple of things you can do to try to debug this:

a) Run the test script at tests/test-your-retriever

cd tests
python -m test-your-retriever

b) Add a variable to your .env file:

SCRAPER=tavily_extract

Sometimes your IP might get blocked from scraping which that might help with

Happy to hear how it goes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants