Skip to content

Commit

Permalink
Rename transformers agents to smolagents
Browse files Browse the repository at this point in the history
  • Loading branch information
aymeric-roucher committed Jan 6, 2025
1 parent b75779e commit 5236fad
Show file tree
Hide file tree
Showing 6 changed files with 583 additions and 108 deletions.
2 changes: 1 addition & 1 deletion notebooks/en/_toctree.yml
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@
isExpanded: false
sections:
- local: agents
title: Build an agent with tool-calling superpowers using Transformers Agents
title: Build an agent with tool-calling superpowers using smolagents
- local: agent_rag
title: Agentic RAG - turbocharge your RAG with query reformulation and self-query
- local: agent_text_to_sql
Expand Down
2 changes: 1 addition & 1 deletion notebooks/en/agent_text_to_sql.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"# Agent for text-to-SQL with automatic error correction\n",
"_Authored by: [Aymeric Roucher](https://huggingface.co/m-ric)_\n",
"\n",
"In this tutorial, we'll see how to implement an agent that leverages SQL using `transformers.agents`.\n",
"In this tutorial, we'll see how to implement an agent that leverages SQL using `smolagents`.\n",
"\n",
"What's the advantage over a standard text-to-SQL pipeline?\n",
"\n",
Expand Down
6 changes: 3 additions & 3 deletions notebooks/en/agents.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,16 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"# Build an agent with tool-calling superpowers 🦸 using Transformers Agents\n",
"# Build an agent with tool-calling superpowers 🦸 using smolagents\n",
"_Authored by: [Aymeric Roucher](https://huggingface.co/m-ric)_\n",
"\n",
"This notebook demonstrates how you can use [**Transformers Agents**](https://huggingface.co/docs/transformers/en/agents) to build awesome **agents**!\n",
"This notebook demonstrates how you can use [**smolagents**](https://huggingface.co/docs/smolagents/index) to build awesome **agents**!\n",
"\n",
"What are **agents**? Agents are systems that are powered by an LLM and enable the LLM (with careful prompting and output parsing) to use specific *tools* to solve problems.\n",
"\n",
"These *tools* are basically functions that the LLM couldn't perform well by itself: for instance for a text-generation LLM like [Llama-3-70B](https://huggingface.co/meta-llama/Meta-Llama-3-70B-Instruct), this could be an image generation tool, a web search tool, a calculator...\n",
"\n",
"What is **Transformers Agents**? it's an extension of our `transformers` library that provides building blocks to build your own agents! Learn more about it in the [documentation](https://huggingface.co/docs/transformers/en/agents).\n",
"What is **smolagents**? It's an library that provides building blocks to build your own agents! Learn more about it in the [documentation](https://huggingface.co/docs/smolagents/index).\n",
"\n",
"Let's see how to use it, and which use cases it can solve.\n",
"\n",
Expand Down
2 changes: 1 addition & 1 deletion notebooks/en/multiagent_rag_system.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -555,7 +555,7 @@
},
"outputs": [],
"source": [
"from transformers.agents import Tool\n",
"from smolagents import Tool\n",
"from langchain_core.vectorstores import VectorStore\n",
"\n",
"class RetrieverTool(Tool):\n",
Expand Down
Loading

0 comments on commit 5236fad

Please sign in to comment.