Update prompts to avoid confusion: search -> web_search and wiki -> wiki_search by SrzStephen · Pull Request #1403 · huggingface/smolagents (original) (raw)

added 2 commits

June 2, 2025 02:20

@SrzStephen

@SrzStephen

… 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 SrzStephen changed the titleBug: Update prompts: search -> web_search and wiki -> wiki_search Fix: Update prompts: search -> web_search and wiki -> wiki_search

Jun 1, 2025

albertvillanova

@albertvillanova

@albertvillanova albertvillanova changed the titleFix: Update prompts: search -> web_search and wiki -> wiki_search Update prompts to avoid confusion: search -> web_search and wiki -> wiki_search

Jun 2, 2025

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 }})