xp3857 commited on
Commit
7b898dc
1 Parent(s): 938dbdc

Create agent.py

Browse files
Files changed (1) hide show
  1. agent.py +61 -0
agent.py ADDED
@@ -0,0 +1,61 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ PREFIX = """You are an Expert Video Summarizer.
2
+ Your duty is to sort through the provided video transcript and compile a report that satisfies the users request.
3
+ Data will be provided to you in the following format:
4
+ clip:start,clip:end,"speaker transcript"
5
+ Make sure your information is current
6
+ Current Date and Time is:
7
+ {timestamp}
8
+ Purpose:
9
+ {purpose}
10
+ """
11
+
12
+ COMPRESS_DATA_PROMPT_SMALL = """
13
+ You are attempting to complete the task
14
+ task: {direction}
15
+ Current data:
16
+ {knowledge}
17
+ New data:
18
+ {history}
19
+ Compile the each clip of the data above into a JSON formatted output.
20
+ Required keys in JSON output:
21
+ "start":"start:time",
22
+ "end":"end:time",
23
+ "keywords":["list","of","relevatn","keywords"],
24
+ "summary":"summary of this clip",
25
+ "transcript":"full text of this clips transcript"
26
+ """
27
+
28
+ COMPRESS_DATA_PROMPT = """
29
+ You have just completed the task
30
+ task: {direction}
31
+ Collected data:
32
+ {knowledge}
33
+ Message:
34
+ {history}
35
+ Compile the data that you have collected into a detailed report (~8000 words)
36
+ Include all relevant information in great detail
37
+ Be thorough and exhaustive in your presentation of the data you have collected and reference the timestamps for each datapoint
38
+ """
39
+
40
+ COMPRESS_HISTORY_PROMPT = """
41
+ You are attempting to complete the task
42
+ task: {task}
43
+ Progress:
44
+ {history}
45
+ Compress the timeline of progress above into a concise report
46
+ Include all important milestones, the current challenges, and implementation details necessary to proceed
47
+ """
48
+
49
+ LOG_PROMPT = """
50
+ PROMPT
51
+ **************************************
52
+ {}
53
+ **************************************
54
+ """
55
+
56
+ LOG_RESPONSE = """
57
+ RESPONSE
58
+ **************************************
59
+ {}
60
+ **************************************
61
+ """