Update prompts to avoid confusion: search -> web_search and wiki -> wiki_search by SrzStephen · Pull Request #1403 · huggingface/smolagents (original) (raw)
added 2 commits
… applied in code_agent.yaml
Fixed code_agent.yaml to use wiki search instead of wiki search in rules for wikipedia search.
I have left toolcalling_agent.yaml alone as I'm not 100% sure whether that has the same issue or whether it was intentional.
Task: "Which city has the highest population , Guangzhou or Shanghai?"
Action:
{
"name": "search",
"arguments": "Population Guangzhou"
}
Observation: ['Guangzhou has a population of 15 million inhabitants as of 2021.']
Action:
{
"name": "search",
"arguments": "Population Shanghai"
}
Observation: '26 million (2019)'
Action:
{
"name": "final_answer",
"arguments": "Shanghai"
} SrzStephen changed the title
Bug: Update prompts: search -> web_search and wiki -> wiki_search Fix: Update prompts: search -> web_search and wiki -> wiki_search
albertvillanova changed the title
Fix: Update prompts: search -> web_search and wiki -> wiki_search Update prompts to avoid confusion: search -> web_search and wiki -> wiki_search
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
[ Show hidden characters]({{ revealButtonHref }})