Omnibus commited on
Commit
377f88a
1 Parent(s): f4c1a18

Update prompts.py

Browse files
Files changed (1) hide show
  1. prompts.py +2 -20
prompts.py CHANGED
@@ -1,48 +1,30 @@
1
  PREFIX = """You are an Internet Search Scraper with acces to an external set of tools.
2
  Your duty is to trigger the appropriate tool, and then sort through the search results in the observation to find information that fits the user's requirements.
3
  Deny the users request to perform any search that can be considered dangerous, harmful, illegal, or potentially illegal
4
-
5
  Make sure your information is current
6
  Current Date and Time is:
7
  {timestamp}
8
-
9
  You have access to the following tools:
10
  - action: UPDATE-TASK action_input=NEW_TASK
11
  - action: SEARCH_ENGINE action_input=SEARCH_ENGINE_URL/?q=SEARCH_QUERY
12
  - action: SCRAPE_WEBSITE action_input=WEBSITE_URL
13
  - action: COMPLETE
14
-
15
  Search Purpose:
16
  {purpose}
17
  """
18
 
19
  FINDER = """
20
-
21
  Instructions
22
  - Use the provided tool to find a website to scrape
23
  - Use the tool provided tool to scrape the text from the website url
24
  - Find the pertinent information in the text that you scrape
25
- - When you are finished, return with action: COMPLETE
26
-
27
  Use the following format:
28
  task: choose the next action from your available tools
29
  action: the action to take (should be one of [UPDATE-TASK, SEARCH_ENGINE, SCRAPE_WEBSITE, COMPLETE]) action_input=XXX
30
- observation: the result of the action
31
- action: SCRAPE_WEBSITE action_input=URL
32
- action: COMPLETE
33
-
34
  Example:
35
- ***************************
36
  User command: Find me the breaking news from today
37
  action: SEARCH_ENGINE action_input=https://www.google.com/search?q=todays+breaking+news
38
-
39
- Response:
40
- Assistant: I found the the following news articles.....
41
- ***************************
42
-
43
- action: COMPLETE
44
-
45
-
46
  Progress:
47
  {history}"""
48
 
@@ -160,7 +142,7 @@ Current data:
160
  New data:
161
  {history}
162
  Compress the data above into a concise data presentation of relevant data
163
- Include datapoints that will provide greater accuracy in completing the task
164
  """
165
 
166
  COMPRESS_HISTORY_PROMPT = """
 
1
  PREFIX = """You are an Internet Search Scraper with acces to an external set of tools.
2
  Your duty is to trigger the appropriate tool, and then sort through the search results in the observation to find information that fits the user's requirements.
3
  Deny the users request to perform any search that can be considered dangerous, harmful, illegal, or potentially illegal
 
4
  Make sure your information is current
5
  Current Date and Time is:
6
  {timestamp}
 
7
  You have access to the following tools:
8
  - action: UPDATE-TASK action_input=NEW_TASK
9
  - action: SEARCH_ENGINE action_input=SEARCH_ENGINE_URL/?q=SEARCH_QUERY
10
  - action: SCRAPE_WEBSITE action_input=WEBSITE_URL
11
  - action: COMPLETE
 
12
  Search Purpose:
13
  {purpose}
14
  """
15
 
16
  FINDER = """
 
17
  Instructions
18
  - Use the provided tool to find a website to scrape
19
  - Use the tool provided tool to scrape the text from the website url
20
  - Find the pertinent information in the text that you scrape
21
+ - When you are finished, return with\naction: COMPLETE
 
22
  Use the following format:
23
  task: choose the next action from your available tools
24
  action: the action to take (should be one of [UPDATE-TASK, SEARCH_ENGINE, SCRAPE_WEBSITE, COMPLETE]) action_input=XXX
 
 
 
 
25
  Example:
 
26
  User command: Find me the breaking news from today
27
  action: SEARCH_ENGINE action_input=https://www.google.com/search?q=todays+breaking+news
 
 
 
 
 
 
 
 
28
  Progress:
29
  {history}"""
30
 
 
142
  New data:
143
  {history}
144
  Compress the data above into a concise data presentation of relevant data
145
+ Include a datapoints and source urls that will provide greater accuracy in completing the task
146
  """
147
 
148
  COMPRESS_HISTORY_PROMPT = """