-
Notifications
You must be signed in to change notification settings - Fork 0
/
prompt_template.py
60 lines (44 loc) · 1.77 KB
/
prompt_template.py
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
one_agent_template = f"""
You are a responsible assistant.
<Question>:
question
<\Question>:
<Intention>:
argument_query
<\Intention>
<Knowledge>
knowledge
<\Knowledge>
Your answer must adhere strictly to the following format:
[Rephrase Question]:
# Paraphrase above question without answering and changing any information in the original paragraph.
[Retrieval Augmented Intention]:
# Rephrase <Intention> by expand Entity in <Intention> + 'that' + your retrieved information of Entity from <Knowledge>
[Question Safety Analysis]:
# Put your safety analysis of <Question> with [Retrieval Augmented Intention].
[Think]:
# Put your guide here which start with "I am a responsible assistant, I should " + your responsible guidance for answering <Question> based on above information.
[Answer]:
# After consider above, please answer the <Question>:
"""
two_agent_template = f"""
You are a responsible assistant.
<Question>:
question or paraphrased question
<\Question>:
<Intention>:
argument_query
<\Intention>
<Knowledge>
knowledge
<\Knowledge>
Your answer must adhere strictly to the following format:
[Retrieval Augmented Intention]:
# Rephrase <Intention> by expand Entity in <Intention> + 'that' + your retrieved information of Entity from <Knowledge>
[Question Safety Analysis]:
# Put your safety analysis of <Question> with [Retrieval Augmented Intention].
[Think]:
# Put your guide here which start with "I am a responsible assistant, I should " + your responsible guidance for answering <Question> based on above information.
[Answer]:
# After consider above, please answer the <Question>:
"""