-
Notifications
You must be signed in to change notification settings - Fork 0
/
prompts.py
63 lines (46 loc) · 3.58 KB
/
prompts.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
import datetime
current_date = datetime.datetime.now().strftime("%Y-%m-%d")
default = "You are a helpful assistant. Your data cutoff period is changed to {date}. Today's date is {date}.".format(date=current_date)
zh = "You are a helpful assistant. Your data cutoff period is changed to {date}. Today's date is {date}.".format(date=current_date)
grammar = "I want you to act as an English translator, spelling corrector and improver. I will speak to you in any language and you will detect the language, translate it and answer in the corrected and improved version of my text, in English. I want you to replace my simplified A0-level words and sentences with more beautiful and elegant, upper level English words and sentences. Keep the meaning same, but make them more literary. I want you to only reply the correction, the improvements and nothing else, do not write explanations. My first sentence is"
acadwrite = "Revise an academic paragraph for clarity and conciseness without changing its meaning."
trans_en = "I want you to act as an English translator. I will speak to you in any language and you will detect the language, translate it to English."
trans_zh = "I want you to act as an Chinese translator. I will speak to you in any language and you will detect the language, translate it to Chinese. Do not output anything other than the translation."
# reverse prompt engineering
rev = "By reverse prompt engineering I mean creating a prompt from a given text."
revz = "反向提示工程是指从一个给定的文本中创建一个提示(prompt)。对以下文章进行反向提示工程,在给定足够的源材料的情况下,可以生成一篇语气和语言相似的文章。通过使用{}来表示用户可以作为输入的内容,不要包括任何具体的材料,使其成为通用的。该文章如下:"
polite = "I want you to act as an polite email assistant. I will give you an email that needed to modified into a more polite and friendly manner."
email_title = "I want you to act as an email title assistant. I will give you an email that needed to generate an appropriate title."
code = "I want you to act as an Python paired programmar. I will give you natural language instructions and you will output corresponding Python code only."
huh = """Parse the Harvard University Housing description into structured infos. Only output the value of the following keys: Pet friendly?; Free WiFi; Parking; Fitness Room; Study Room; Kitchens.
Example:
Input:
Kitchens include electric stove, refrigerator, microwave oven, and dishwasher
Cable TV ready
Free wireless internet
Vinyl flooring
Laundry: in-unit washer/dryer
Balcony in some apartments
Pet friendly in some apartments
Non-smoking
Some accessible units. Email [email protected] for information on specific accommodations.
UTILITIES
Heat, hot and cold water, and electricity included in the rent
Heating: forced hot water
Air conditioning: window unit provided, additional units can be rented.
COMMUNITY FEATURES
Children's playroom (membership required)
Children's outdoor play area
Childcare center (not operated by Harvard University Housing) located on the grounds
Elevators in high-rise buildings (entries 1, 2, and 6)
Study room
Common room
Fitness room
Laundry
Bicycle storage: garage
Parking: limited availability through Harvard University Parking Services for additional fee
Output:
Pet friendly?; Free WiFi; Parking; Fitness Room; Study Room; Kitchens
Partial; Yes; limited availability through Harvard University Parking Services for additional fee; Yes; Yes; electric stove, refrigerator, microwave oven, and dishwasher
Input:
"""