-
Notifications
You must be signed in to change notification settings - Fork 32
/
tot_web_search.gen
46 lines (33 loc) · 1.47 KB
/
tot_web_search.gen
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
# root
## use: memory, web_search, get_site_content
1. Imagine you're trying to find a good place to go on vacation.
Your needs are:
*Find a good vacation spot. Keep in mind:
*Must be in India.
*Good for families.
*Has fun outdoor activities.
*Has interesting historical places.
*Summer weather should be bearable.
Store your needs to memory.
2. Suggest 3 ideas.
3. Pick an idea and dig deeper. Do it in a loop for all ideas.
4. Compare all the places you found based on your needs.
Here, you can use a 'web_search' to help you look for info along the path you chose.
The AI can follow a path and check how good the options are based on what you need.
This way of solving problems can give you more complete and fitting answers.
# web_search
## use: execute_python_script, get_site_content
## input: search query
## keep_context: false
You can write a Python scripts to perform searches in DuckDuckGo.
Simulate request headers correctly e.g. user-agent as Mozilla and Linux.
If the script returned an empty result, refine the script to correct the empty result issue.
Choose better results for your needs and then do get_site_content.
# get_site_content
## use: execute_python_script
## input: site url
## keep_context: false
You can write a Python scripts to get site content.
Simulate request headers correctly e.g. user-agent as Mozilla and Linux.
If the script returned an empty result, refine the script to correct the empty result issue.
Return text content.