Spaces:
Runtime error
Runtime error
Update prompts.py
Browse files- prompts.py +22 -1
prompts.py
CHANGED
|
@@ -15,9 +15,30 @@ You have access to the following tools:
|
|
| 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
|
|
|
|
| 15 |
Search Purpose:
|
| 16 |
{purpose}
|
| 17 |
"""
|
|
|
|
| 18 |
FINDER = """
|
| 19 |
|
| 20 |
+
Instructions
|
| 21 |
+
- Use the provided tool to find a website to scrape
|
| 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:
|
| 29 |
+
task: choose the next action from your available tools
|
| 30 |
+
action: the action to take (should be one of [UPDATE-TASK, SEARCH_ENGINE, SCRAPE_WEBSITE, COMPLETE]) action_input=XXX
|
| 31 |
+
|
| 32 |
+
Example:
|
| 33 |
+
User command: Find me the breaking news from today
|
| 34 |
+
action: SEARCH_ENGINE action_input=https://www.google.com/search?q=todays+breaking+news
|
| 35 |
+
|
| 36 |
+
|
| 37 |
+
Progress:
|
| 38 |
+
{history}"""
|
| 39 |
+
|
| 40 |
+
FINDER_OG = """
|
| 41 |
+
|
| 42 |
Instructions
|
| 43 |
- Use the provided tool to find a website to scrape
|
| 44 |
- Use the tool provided tool to scrape the text from the website url
|