introducing wikipedia search
Browse files
tools.py
CHANGED
|
@@ -2,7 +2,7 @@ from smolagents import DuckDuckGoSearchTool
|
|
| 2 |
from smolagents import Tool
|
| 3 |
import random
|
| 4 |
from huggingface_hub import list_models
|
| 5 |
-
|
| 6 |
|
| 7 |
# Initialize the DuckDuckGo search tool
|
| 8 |
#search_tool = DuckDuckGoSearchTool()
|
|
|
|
| 2 |
from smolagents import Tool
|
| 3 |
import random
|
| 4 |
from huggingface_hub import list_models
|
| 5 |
+
from langchain_community.document_loaders import WikipediaLoader
|
| 6 |
|
| 7 |
# Initialize the DuckDuckGo search tool
|
| 8 |
#search_tool = DuckDuckGoSearchTool()
|