Omnibus commited on
Commit
6aaa647
1 Parent(s): e1f356a

Create agent.py

Browse files
Files changed (1) hide show
  1. agent.py +53 -0
agent.py ADDED
@@ -0,0 +1,53 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ 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: {task}
12
+ Current data:
13
+ {knowledge}
14
+ New data:
15
+ {history}
16
+ Compress the data above into a concise data presentation of relevant data
17
+ Include datapoints that will provide greater accuracy in completing the task
18
+ Return the data in JSON format to save space
19
+ """
20
+
21
+ COMPRESS_DATA_PROMPT = """
22
+ You are attempting to complete the task
23
+ task: {task}
24
+ Current data:
25
+ {knowledge}
26
+ New data:
27
+ {history}
28
+ Compress the data above into a concise data presentation of relevant data
29
+ Include datapoints that will provide greater accuracy in completing the task
30
+ """
31
+
32
+ COMPRESS_HISTORY_PROMPT = """
33
+ You are attempting to complete the task
34
+ task: {task}
35
+ Progress:
36
+ {history}
37
+ Compress the timeline of progress above into a single summary (as a paragraph)
38
+ Include all important milestones, the current challenges, and implementation details necessary to proceed
39
+ """
40
+
41
+ LOG_PROMPT = """
42
+ PROMPT
43
+ **************************************
44
+ {}
45
+ **************************************
46
+ """
47
+
48
+ LOG_RESPONSE = """
49
+ RESPONSE
50
+ **************************************
51
+ {}
52
+ **************************************
53
+ """