Spaces:
Sleeping
Sleeping
Alexander Casimir Fischer
commited on
Commit
·
93166a1
1
Parent(s):
292a27a
modified: common.py
Browse files
common.py
CHANGED
@@ -202,8 +202,8 @@ prompt_evaluation = PromptTemplate(
|
|
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
|
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. \
|
@@ -266,6 +266,7 @@ prompt_qc_grade = PromptTemplate(input_variables=["qc_report"],
|
|
266 |
Only give an integer and '%' as an output, nothing else.\n\n\
|
267 |
Here is the report:\n\n\
|
268 |
{qc_report}")
|
|
|
269 |
|
270 |
#Defining LLMs, sources and Chains
|
271 |
llm = ChatOpenAI(model="gpt-4", temperature=0.5)
|
|
|
202 |
Evaluation / Explaination \n\
|
203 |
Recommendations"
|
204 |
)
|
205 |
+
prompt_topic_rand = PromptTemplate(input_variables=["number"], template="Please give me a random school writing topic for 9 year old kids \
|
206 |
+
in one or maximum {number} 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. \
|
|
|
266 |
Only give an integer and '%' as an output, nothing else.\n\n\
|
267 |
Here is the report:\n\n\
|
268 |
{qc_report}")
|
269 |
+
number = "two"
|
270 |
|
271 |
#Defining LLMs, sources and Chains
|
272 |
llm = ChatOpenAI(model="gpt-4", temperature=0.5)
|