-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathprompt_preludes.py
68 lines (60 loc) · 4.19 KB
/
prompt_preludes.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
61
62
63
64
65
66
67
68
prelude_1 = """
In the PARAGRAPH section below:
First, extract words or phrases related to the TRUTHFUL and DECEPTIVE categories and sub-categories using the EXAMPLE section as a guide.
Next, provide detailed reasons as to why the PARAGRAPH is TRUTHFUL or DECEPTIVE based on values you extracted in each sub-categories.
Pay special attention to 'importance' to decide which class the PARAGRAPH belongs to.
Treat each sub-category within the two categories based on the 'importance' key.
Finally, in one word, make a final classification on whether the paragraph is TRUTHFUL or DECEPTIVE.
Generate the response in only the JSON format with keys, "TRUTHFUL", "DECEPTIVE", "REASONING", "CLASSIFICATION".
In the response, list each sub-category even if it's empty and include its importance.
The key for the subcategory must be 'extracted'
The CLASSIFICATION key can have only two values, 'truthful' or 'deceptive'
EXAMPLE: TRUTHFUL and DECEPTIVE CATEGORIES and SUB-CATEGORIES and the IMPORTANCE of each SUB-CATEGORY
{"TRUTHFUL":
{"ingestion": { "examples": ["dish", "eat", "pizza"], "importance": "high" },
"biological-processes": { "examples": ["eat", "blood", "pain"], "importance": "medium" },
"numbers": { "examples": ["second", "thousand", "5", "10"], "importance": "medium" },
"leisure": { "examples": ["cook", "chat", "movie"], "importance": "medium" },
"future-focus": { "examples": ["may", "will", "soon"], "importance": "medium" }
},
"DECEPTIVE":
{"apostrophes": { "examples": ["haven't", "won't", "she's", "can't"], "importance": "high" },
"past-tense-focused": { "examples": ["ago", "did", "talked", "promised", "gotten"], "importance": "high" },
"reward": { "examples": ["congratulate", "accomplishment", "take", "prize", "benefit"], "importance": "high" },
"pronouns": { "examples": ["I", "them", "itself"], "importance": "high" },
"personal-pronouns": { "examples": ["I", "them", "her"], "importance": "high" },
"exclamation-mark": { "examples": ["!"], "importance": "high" }
}
}
"""
prelude_2 = """
In the PARAGRAPH section below:
First, using the EXAMPLE section as a guide, extract words and phrases related to the each of the sub-categories in the TRUTHFUL and DECEPTIVE categories.
Next, provide detailed reasons as to why the PARAGRAPH is TRUTHFUL or DECEPTIVE based on values you extracted in each sub-categories.
Pay special attention to 'importance' of each sub-category and treat it as a weight to decide which class the PARAGRAPH belongs to.
Finally, in one word, make a final classification on whether the PARAGRAPH is TRUTHFUL or DECEPTIVE.
Generate the response in only the JSON format with keys, "TRUTHFUL", "DECEPTIVE", "REASONING", "CLASSIFICATION".
In the response, list each sub-category even if it's empty and include its importance.
The key for the sub-category must be 'extracted'.
The CLASSIFICATION key must have only two values; either 'truthful' or 'deceptive'
EXAMPLE: TRUTHFUL and DECEPTIVE CATEGORIES and SUB-CATEGORIES and the IMPORTANCE of each SUB-CATEGORY
{"TRUTHFUL":
{"ingestion": { "examples": ["dish", "eat", "pizza"], "importance": "high" },
"biological-processes": { "examples": ["eat", "blood", "pain"], "importance": "medium" },
"numbers": { "examples": ["second", "thousand", "5", "10"], "importance": "medium" },
"leisure": { "examples": ["cook", "chat", "movie"], "importance": "medium" },
"future-focus": { "examples": ["may", "will", "soon"], "importance": "medium" }
},
"DECEPTIVE":
{"negative-contractions": { "examples": ["haven't", "won't", "can't"], "importance": "high" },
"apostrophes": { "examples": ["she's", "I'm"], "importance": "medium" },
"past-tense-focused": { "examples": ["ago", "did", "talked", "promised", "gotten"], "importance": "high" },
"reward": { "examples": ["congratulate", "accomplishment", "take", "prize", "benefit"], "importance": "high" },
"pronouns": { "examples": ["I", "them", "itself"], "importance": "high" },
"personal-pronouns": { "examples": ["I", "them", "her"], "importance": "high" },
"exclamation-mark": { "examples": ["!"], "importance": "high" }
}
}
"""
def load_prompt_prelude():
return prelude_2