crewAI icon indicating copy to clipboard operation
crewAI copied to clipboard

duckduckgo_search

Open xjq284 opened this issue 2 months ago • 4 comments

from langchain_community.tools import DuckDuckGoSearchRun ddgs_search_tool = DuckDuckGoSearchRun()


Action: duckduckgo_search Action Input: {"q": "financial management and control within China's shipping industry"}

I encountered an error while trying to use the tool. This was the error: DuckDuckGoSearchRun._run() got an unexpected keyword argument 'q'. Tool duckduckgo_search accepts these inputs: A wrapper around DuckDuckGo Search. Useful for when you need to answer questions about current events. Input should be a search query.

xjq284 avatar May 05 '24 19:05 xjq284

The llm is misusung the tool. It shout be "query" not "q". The model doestnt read the error and fix itself zhe solution is a "smarter" model unfortunately

noggynoggy avatar May 06 '24 08:05 noggynoggy

Is this due to hallucination? @noggynoggy

mahimairaja avatar May 09 '24 16:05 mahimairaja

Is this due to hallucination? @noggynoggy

Hallucination is a broad term and by my definition this would not be that. I would just call this the model guessing what to do (as it always does) and being wrong. Hallucination is making up facts and being confident about those.

noggynoggy avatar May 09 '24 17:05 noggynoggy

hmm.. how do you even term it? @noggynoggy jus asking out of kuriosity

mahimairaja avatar May 09 '24 18:05 mahimairaja