Omnibus commited on
Commit
e723b21
·
verified ·
1 Parent(s): fb2354b

Update prompts.py

Browse files
Files changed (1) hide show
  1. prompts.py +20 -3
prompts.py CHANGED
@@ -22,7 +22,6 @@ Instructions
22
  - Use the tool provided tool to scrape the text from the website url
23
  - Find the pertinent information in the text that you scrape
24
  - If you find conflicting data, decide which source is more accurate
25
- - Your response should be Indexed in a way that can be easily searched by Elasticsearch
26
  - When you are finished, return with\naction: COMPLETE
27
 
28
  Use the following format:
@@ -161,7 +160,25 @@ Include datapoints that will provide greater accuracy in completing the task
161
  Return the data in JSON format to save space
162
  """
163
 
164
-
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
165
 
166
 
167
  COMPRESS_DATA_PROMPT = """
@@ -172,7 +189,7 @@ Current data:
172
  New data:
173
  {history}
174
  Compress the data above into a concise data presentation of relevant data
175
- Include a datapoints and source urls that will provide greater accuracy in completing the task
176
  """
177
 
178
  COMPRESS_HISTORY_PROMPT = """
 
22
  - Use the tool provided tool to scrape the text from the website url
23
  - Find the pertinent information in the text that you scrape
24
  - If you find conflicting data, decide which source is more accurate
 
25
  - When you are finished, return with\naction: COMPLETE
26
 
27
  Use the following format:
 
160
  Return the data in JSON format to save space
161
  """
162
 
163
+ SAVE_MEMORY = """
164
+ You are attempting to complete the task
165
+ task: {task}
166
+ Current data:
167
+ {knowledge}
168
+ New data:
169
+ {history}
170
+ Compress the data above into a concise data presentation of relevant data
171
+ Include all datapoints, titles, descriptions, and source urls indexed into an easy to search JSON format
172
+ Example:
173
+ {
174
+ "Query": "Find the current temperature in Florida",
175
+ "Result": [
176
+ {"Title": "the title", "Description": "A summary", "Contents": "full contents", "URL": "source URL"},
177
+ ]
178
+ }
179
+
180
+ Return the data in JSON format
181
+ """
182
 
183
 
184
  COMPRESS_DATA_PROMPT = """
 
189
  New data:
190
  {history}
191
  Compress the data above into a concise data presentation of relevant data
192
+ Include all datapoints and source urls that will provide greater accuracy in completing the task
193
  """
194
 
195
  COMPRESS_HISTORY_PROMPT = """