File size: 1,289 Bytes
364f00c
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# regular template
prompt_template = (
    "Write a concise summary of the following:\n"
    "{text}\n"
    "CONCISE SUMMARY:\n"
)


refine_template = (
    "Your job is to produce a final summary\n"
    "We have provided an existing summary up to a certain point: {existing_answer}\n"
    "We have the opportunity to refine the existing summary"
    "(only if needed) with some more context below.\n"
    "------------\n"
    "{text}\n"
    "------------\n"
    "Given the new context, refine the original summary.\n"
    "If the context isn't useful, return the original summary."
)


# bullet points template
prompt_template_bullet_point = (
    "Write a concise summary of the following in bullet points:\n"
    "{text}\n"
    "BULLET POINTS SUMMARY:\n"
)

refine_prompt_template_bullet_point = (
    "Your job is to produce a final summary in bullet points\n"
    "We have provided an existing bullet points summary up to a certain point: {existing_answer}\n"
    "We have the opportunity to refine the existing bullet points"
    "(only if needed) with some more context below.\n"
    "------------\n"
    "{text}\n"
    "------------\n"
    "Given the new context, refine the original bullet points summary.\n"
    "If the context isn't useful, return the original bullet points."
)