You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/components/action/tools.md
+35-7Lines changed: 35 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -25,7 +25,35 @@ admin = Admin(
25
25
)
26
26
```
27
27
28
-
### 2. Serper Search Tool
28
+
### 2. SearchApi Search
29
+
30
+
[SearchApi.io](https://searchapi.io/) provides a real-time API to access search results from Google (default), Google Scholar, Bing, Baidu, and other search engines. Any existing or upcoming SERP engine that returns `organic_results` is supported. The default web search engine is `google`, but it can be changed to `bing`, `baidu`, `google_news`, `bing_news`, `google_scholar`, `google_patents`, and others.
os.environ['SEARCHAPI_ENGINE'] ="bing"# defaults to google.
39
+
```
40
+
41
+
Get your API key by creating an account or logging into your account on [SearchApi](https://searchapi.io/).
42
+
43
+
```python
44
+
from openagi.actions.tools.searchapi_search import SearchApiSearch
45
+
from openagi.agent import Admin
46
+
from openagi.llms.openai import OpenAIModel
47
+
from openagi.planner.task_decomposer import TaskPlanner
48
+
49
+
admin = Admin(
50
+
llm= llm,
51
+
actions=[SearchApiSearch],
52
+
planner=TaskPlanner(),
53
+
)
54
+
```
55
+
56
+
### 3. Serper Search Tool
29
57
30
58
Serper is a low-cost Google Search API that can be used to add answer box, knowledge graph, and organic results data from Google Search. This tool is mainly helps user to query the Google results with less throughput and latency. 
31
59
@@ -52,7 +80,7 @@ admin = Admin(
52
80
)
53
81
```
54
82
55
-
### 3. Google Serp API Search
83
+
### 4. Google Serp API Search
56
84
57
85
Serp API is yet another solution to integrate search data. SERP stands for _Search Engine Results Page_. It refers to the page displayed by a search engine in response to a user's query.
58
86
@@ -79,7 +107,7 @@ admin = Admin(
79
107
)
80
108
```
81
109
82
-
### 4. Github Search Tool
110
+
### 5. Github Search Tool
83
111
84
112
The Github SearchTool is used for retrieving information from Github repositories using natural language queries. This tool provides functionality for querying Github repositories for various information, such as code changes, commits, active pull requests, issues, etc., using natural language input. It is designed to be used as part of a larger AI-driven agent system.
85
113
@@ -106,7 +134,7 @@ admin = Admin(
106
134
)
107
135
```
108
136
109
-
### 5. YouTube Search Tool
137
+
### 6. YouTube Search Tool
110
138
111
139
The YouTube Search tool allows users to search for videos on YouTube using natural language queries. This tool retrieves relevant video content based on user-defined search parameters, making it easier to find specific videos or topics of interest.
112
140
@@ -132,7 +160,7 @@ admin = Admin(
132
160
)
133
161
```
134
162
135
-
### 6. Tavily QA Search Tool
163
+
### 7. Tavily QA Search Tool
136
164
137
165
The Tavily QA Search tool is designed to provide answers to user queries by fetching data from various online sources. This tool enhances the capability of the agent to retrieve precise information and answer questions effectively.
138
166
@@ -166,7 +194,7 @@ admin = Admin(
166
194
)
167
195
```
168
196
169
-
### 7. Exa Search Tool
197
+
### 8. Exa Search Tool
170
198
171
199
The Exa Search tool allows users to query the Exa API to retrieve relevant responses based on user-defined questions. This tool is particularly useful for extracting information and insights from various data sources using natural language queries.
172
200
@@ -202,7 +230,7 @@ admin = Admin(
202
230
)
203
231
```
204
232
205
-
### 8. Unstructured PDF Loader Tool
233
+
### 9. Unstructured PDF Loader Tool
206
234
207
235
The Unstructured PDF Loader tool is designed to extract content, including metadata, from PDF files. It utilizes the Unstructured library to partition the PDF and chunk the content based on titles. This tool is useful for processing large volumes of PDF documents and making their contents accessible for further analysis.
Copy file name to clipboardExpand all lines: docs/use-cases/jobsearch-agent.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,7 +6,7 @@ It utilize various tools for internet search and document comparison to fulfill
6
6
7
7
First, we need to import the necessary modules. Each module serves a specific purpose in our script. We utilize various tools for internet search and document comparison to fulfill the agent's task. Here’s what each import does:
8
8
9
-
*`GoogleSerpAPISearch` and `DuckDuckGoSearch` are tools for performing web searches.
9
+
*`SearchApiSearch`, `GoogleSerpAPISearch` and `DuckDuckGoSearch` are tools for performing web searches.
10
10
*`Admin` manages the overall execution of tasks.
11
11
*`AzureChatOpenAIModel` is used to configure the large language model from Azure.
12
12
*`Memory` is for maintaining context during the agent's operations.
0 commit comments