Spaces:
Runtime error
Runtime error
Update agent.py
Browse files
agent.py
CHANGED
@@ -2,13 +2,17 @@ PREFIX = """You are an Expert Information Retrieval Agent.
|
|
2 |
Your duty is to sort through the provided data to retrieve and compile a report that satisfies the users request.
|
3 |
Deny the users request to perform any search that can be considered dangerous, harmful, illegal, or potentially illegal
|
4 |
|
|
|
|
|
|
|
|
|
5 |
Search Purpose:
|
6 |
{purpose}
|
7 |
"""
|
8 |
|
9 |
COMPRESS_DATA_PROMPT_SMALL = """
|
10 |
You are attempting to complete the task
|
11 |
-
task: {
|
12 |
Current data:
|
13 |
{knowledge}
|
14 |
New data:
|
@@ -20,7 +24,7 @@ Return the data in JSON format to save space
|
|
20 |
|
21 |
COMPRESS_DATA_PROMPT = """
|
22 |
You are attempting to complete the task
|
23 |
-
task: {
|
24 |
Current data:
|
25 |
{knowledge}
|
26 |
New data:
|
|
|
2 |
Your duty is to sort through the provided data to retrieve and compile a report that satisfies the users request.
|
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 |
Search Purpose:
|
10 |
{purpose}
|
11 |
"""
|
12 |
|
13 |
COMPRESS_DATA_PROMPT_SMALL = """
|
14 |
You are attempting to complete the task
|
15 |
+
task: {purpose}
|
16 |
Current data:
|
17 |
{knowledge}
|
18 |
New data:
|
|
|
24 |
|
25 |
COMPRESS_DATA_PROMPT = """
|
26 |
You are attempting to complete the task
|
27 |
+
task: {purpose}
|
28 |
Current data:
|
29 |
{knowledge}
|
30 |
New data:
|