Spaces:
Sleeping
Sleeping
Alexander Casimir Fischer
commited on
Commit
·
292a27a
1
Parent(s):
03e68bb
modified: common.py
Browse files
common.py
CHANGED
@@ -139,11 +139,12 @@ prompt_context = PromptTemplate(
|
|
139 |
template="You are a writer at a school book publishing company. \
|
140 |
You will be given a certain topic, then your task is to write a school book article about it. \
|
141 |
Choose your words in accordance to the teachings of Wikipedia, precisely the explanations you find at the end of this prompt. \
|
142 |
-
|
143 |
-
The article should have a clearly defined thread that is easy to follow. \
|
|
|
|
|
144 |
Please do not give the article a title, only include the body in your answer. \
|
145 |
-
Please
|
146 |
-
The article should be around 10-15 sentences long. \n\
|
147 |
\n\
|
148 |
Topic: {chosen_topic} \n\
|
149 |
\n\
|
@@ -152,11 +153,12 @@ prompt_context = PromptTemplate(
|
|
152 |
)
|
153 |
prompt_frq = PromptTemplate(
|
154 |
input_variables=["context", "standard_definition", "question_or_task"],
|
155 |
-
template="You are a 4th grade school teacher. \
|
156 |
-
You will be given an input text, which is a short article on a certain topic. \
|
157 |
Thematizing the content of the input text and adressing a 4th grade student, you will then generate a {question_or_task}. \
|
158 |
Do not include a title such as 'Question:' or 'Writing task:' in your output. \
|
159 |
-
Your output must be formulated in such a way that it can be used to test a person's ability to
|
|
|
160 |
\n\
|
161 |
Input text: \n\
|
162 |
\n\
|
@@ -172,7 +174,8 @@ prompt_evaluation = PromptTemplate(
|
|
172 |
A standard for evaluating said answer.\
|
173 |
Your output should be an objective evaluation of the student's answer, taking all inputs into account. \
|
174 |
Please highlight specific areas where the student excelled if applicable. \
|
175 |
-
Also please provide constructive feedback
|
|
|
176 |
Here are your inputs: \n\
|
177 |
\n\
|
178 |
The article: \n\
|
@@ -196,28 +199,31 @@ prompt_evaluation = PromptTemplate(
|
|
196 |
Structure your output like this: \n\
|
197 |
\n\
|
198 |
'PASSED' or 'FAILED'\n\
|
199 |
-
Evaluation / Explaination
|
|
|
200 |
)
|
201 |
-
prompt_topic_rand = PromptTemplate(
|
202 |
-
|
203 |
prompt_answer_good = PromptTemplate(input_variables=["context", "frq", "standard"],
|
204 |
-
template="You are a
|
205 |
-
|
|
|
206 |
Please read this text presented to you below, then answer the task or question that follows. \
|
207 |
-
Please do not simply copy whole sentences from the text.
|
208 |
-
where you always had the best English grades of the entire school. \
|
209 |
Please formulate your answer in a way, that shows off your ability to {standard}. \
|
210 |
-
|
211 |
Here is the text: \n\
|
212 |
{context} \n\n\
|
213 |
Here is the task or question: \n\
|
214 |
{frq} \n\n\
|
215 |
-
Please take some time to think, then give it your best shot.")
|
216 |
prompt_answer_bad = PromptTemplate(input_variables=["context", "frq"],
|
217 |
template="You are a 10 year old student taking an English exam. You are not particularly intelligent. \
|
218 |
Unfortunately you also have troubling focusing on tasks and you happen to get the worst English grades of the entire class. \
|
219 |
-
|
220 |
-
You
|
|
|
|
|
221 |
Please read this text presented to you below, then answer the task or question that follows. \
|
222 |
\n\n\
|
223 |
Here is the text: \n\
|
@@ -225,9 +231,9 @@ prompt_answer_bad = PromptTemplate(input_variables=["context", "frq"],
|
|
225 |
Here is the task or question: \n\
|
226 |
{frq} \n\n\
|
227 |
Please remember: you will NOT perform well on this task. Create a poorly formulated answer, \
|
228 |
-
using a bit of bad grammar and also make
|
229 |
-
Clearly
|
230 |
-
You
|
231 |
prompt_qc_run = PromptTemplate(input_variables=["context", "frq", "rubric", \
|
232 |
"answer_good", "evaluation_good", "answer_bad", "evaluation_bad"],
|
233 |
template="You are a Senior Test Manager with 15 years of experience at a successful software company. \
|
|
|
139 |
template="You are a writer at a school book publishing company. \
|
140 |
You will be given a certain topic, then your task is to write a school book article about it. \
|
141 |
Choose your words in accordance to the teachings of Wikipedia, precisely the explanations you find at the end of this prompt. \
|
142 |
+
Make sure to include real-world examples or case studies, to make the content more relatable and engaging \
|
143 |
+
for 4th grade students. The article should have a clearly defined thread, that is easy to follow. \
|
144 |
+
Please write in a style that is fun to read and understandable by 9 year old kids. \
|
145 |
+
Do absolutely not use rude language. \
|
146 |
Please do not give the article a title, only include the body in your answer. \
|
147 |
+
Please do only include full sentences in your answer. The article should be around 10-15 sentences long. \n\
|
|
|
148 |
\n\
|
149 |
Topic: {chosen_topic} \n\
|
150 |
\n\
|
|
|
153 |
)
|
154 |
prompt_frq = PromptTemplate(
|
155 |
input_variables=["context", "standard_definition", "question_or_task"],
|
156 |
+
template="You are a 4th grade school teacher preparing an exam. \
|
157 |
+
You will be given an input text, which is a short article on a certain topic. Read it and take some time thinking about each paragraph. \
|
158 |
Thematizing the content of the input text and adressing a 4th grade student, you will then generate a {question_or_task}. \
|
159 |
Do not include a title such as 'Question:' or 'Writing task:' in your output. \
|
160 |
+
Your output must be formulated in such a way that it is understandable by 9 year old kids and still can be used to test a person's ability to \
|
161 |
+
{standard_definition}. \n\
|
162 |
\n\
|
163 |
Input text: \n\
|
164 |
\n\
|
|
|
174 |
A standard for evaluating said answer.\
|
175 |
Your output should be an objective evaluation of the student's answer, taking all inputs into account. \
|
176 |
Please highlight specific areas where the student excelled if applicable. \
|
177 |
+
Also please provide constructive feedback, with examples of how the student can improve, if necessary. \
|
178 |
+
In short, do not only evaluate and criticize, but also nourish motivation in the weak students and further challenge the strong ones. \
|
179 |
Here are your inputs: \n\
|
180 |
\n\
|
181 |
The article: \n\
|
|
|
199 |
Structure your output like this: \n\
|
200 |
\n\
|
201 |
'PASSED' or 'FAILED'\n\
|
202 |
+
Evaluation / Explaination \n\
|
203 |
+
Recommendations"
|
204 |
)
|
205 |
+
prompt_topic_rand = PromptTemplate(template="Please give me a random school writing topic for 9 year old kids \
|
206 |
+
in one or maximum two words. Please generate nothing related to sex, drugs, alcohol or violence.")
|
207 |
prompt_answer_good = PromptTemplate(input_variables=["context", "frq", "standard"],
|
208 |
+
template="You are a 9 year old highly intelligent and gifted childa and you are about to take an English exam. \
|
209 |
+
You loved reading and writing ever since you learned it at the age of four. \
|
210 |
+
You always had the best English grades of the entire school. \
|
211 |
Please read this text presented to you below, then answer the task or question that follows. \
|
212 |
+
Please do not simply copy whole sentences from the text. \
|
|
|
213 |
Please formulate your answer in a way, that shows off your ability to {standard}. \
|
214 |
+
\n\n\
|
215 |
Here is the text: \n\
|
216 |
{context} \n\n\
|
217 |
Here is the task or question: \n\
|
218 |
{frq} \n\n\
|
219 |
+
Please take some time to think, then give it your best shot as described above.")
|
220 |
prompt_answer_bad = PromptTemplate(input_variables=["context", "frq"],
|
221 |
template="You are a 10 year old student taking an English exam. You are not particularly intelligent. \
|
222 |
Unfortunately you also have troubling focusing on tasks and you happen to get the worst English grades of the entire class. \
|
223 |
+
Quiet reading, doing homework and taking exams does just not feel natural for you. \
|
224 |
+
You don't actually mind much, since you are quite good at other things. \
|
225 |
+
You are, for example, a pretty creative person and like to tell stories. \
|
226 |
+
Still, it is very hard for you to write a story with structure and thought. \
|
227 |
Please read this text presented to you below, then answer the task or question that follows. \
|
228 |
\n\n\
|
229 |
Here is the text: \n\
|
|
|
231 |
Here is the task or question: \n\
|
232 |
{frq} \n\n\
|
233 |
Please remember: you will NOT perform well on this task. Create a poorly formulated answer, \
|
234 |
+
using a tiny bit of bad grammar and also make blatant logical mistakes. \
|
235 |
+
Clearly indicate that you do not possess the skills being tested.\
|
236 |
+
You will very probabyly not pass this exam.")
|
237 |
prompt_qc_run = PromptTemplate(input_variables=["context", "frq", "rubric", \
|
238 |
"answer_good", "evaluation_good", "answer_bad", "evaluation_bad"],
|
239 |
template="You are a Senior Test Manager with 15 years of experience at a successful software company. \
|