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

Problem with using DDG as search tool #21045

Open
5 tasks done
barshag opened this issue Apr 29, 2024 · 5 comments
Open
5 tasks done

Problem with using DDG as search tool #21045

barshag opened this issue Apr 29, 2024 · 5 comments
Labels
🤖:bug Related to a bug, vulnerability, unexpected error with an existing feature

Comments

@barshag
Copy link

barshag commented Apr 29, 2024

Checked other resources

  • I added a very descriptive title to this issue.
  • I searched the LangChain documentation with the integrated search.
  • I used the GitHub search to find a similar question and didn't find it.
  • I am sure that this is a bug in LangChain rather than my code.
  • The bug is not resolved by updating to the latest stable version of LangChain (or the specific integration package).

Example Code

from langchain_community.tools import DuckDuckGoSearchRun

search_tool = DuckDuckGoSearchRun()

Error Message and Stack Trace (if applicable)

raise validation_error

pydantic.v1.error_wrappers.ValidationError: 1 validation error for DuckDuckGoSearchAPIWrapper
root
deprecated() got an unexpected keyword argument 'name' (type=type_error)

Description

trying to use with crewai

System Info

can't

@dosubot dosubot bot added the 🤖:bug Related to a bug, vulnerability, unexpected error with an existing feature label Apr 29, 2024
@qingdengyue
Copy link

Can the complete code be provided?

@barshag
Copy link
Author

barshag commented May 1, 2024

It stuck at this stage... you can see it as complete code

@Sachin-Bhat
Copy link

Sachin-Bhat commented May 2, 2024

Please ensure that you have updated to the latest version of langchain-community and duckduckgo-search.

pip install -U langchain-community duckduckgo-search

Maybe try this out:

from langchain_community.tools import DuckDuckGoSearchRun

search_tool = DuckDuckGoSearchRun()

print(search_tool.invoke("who is the current prime minister of India"))

Cheers,
Sachin

@TkTakaro
Copy link

TkTakaro commented May 10, 2024

Please ensure that you have updated to the latest version of langchain-community and duckduckgo-search.

pip install -U langchain-community duckduckgo-search

Maybe try this out:

from langchain_community.tools import DuckDuckGoSearchRun

search_tool = DuckDuckGoSearchRun()

print(search_tool.invoke("who is the current prime minister of India"))

Cheers, Sachin

Just to follow-up with OP's issue, this code is not currently functional:
image

Here's the other end of the traceback:
image

Thanks for your help!

  • Tyler

@qingdengyue
Copy link

Please ensure that you have updated to the latest version of langchain-community and duckduckgo-search.

pip install -U langchain-community duckduckgo-search

Maybe try this out:

from langchain_community.tools import DuckDuckGoSearchRun

search_tool = DuckDuckGoSearchRun()

print(search_tool.invoke("who is the current prime minister of India"))

Cheers, Sachin

Just to follow-up with OP's issue, this code is not currently functional: image

Here's the other end of the traceback: image

Thanks for your help!

  • Tyler

Windows ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🤖:bug Related to a bug, vulnerability, unexpected error with an existing feature
Projects
None yet
Development

No branches or pull requests

4 participants