olumideola commited on
Commit
5915f8c
·
verified ·
1 Parent(s): 1416f8d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -11
app.py CHANGED
@@ -28,17 +28,15 @@ TEACHER_SYSTEM = "You write search-style questions that a passage directly answe
28
  TEACHER_TEMPLATE = """You are given a passage. Write {n} questions that the passage directly answers.
29
 
30
  Rules:
31
- - Every question MUST be answered explicitly by the passage.
32
- - Do not combine facts from different parts of the passage.
33
- - Do not infer or assume information.
34
- - If a detail is not explicitly stated, do not ask about it.
35
- - Use only facts that appear verbatim or are directly stated.
36
- - Vary the question types: factual, yes/no, comparison, and why/how.
37
- - Write naturally, like a real search query.
38
- - Return ONLY valid JSON.
39
- - Write the questions in {language}.
40
-
41
- Return ONLY JSON: {{"questions": [{slots}]}}
42
 
43
  Passage: {passage}"""
44
 
 
28
  TEACHER_TEMPLATE = """You are given a passage. Write {n} questions that the passage directly answers.
29
 
30
  Rules:
31
+ - Every question MUST be answerable using ONLY this passage.
32
+ - NEVER copy or repeat a sentence from the passage.
33
+ - Rewrite the information into a natural question.
34
+ - Questions should sound like something a real person would ask in a search engine.
35
+ - Do not quote the passage.
36
+ - Vary the question types: factual, yes/no, why/how, comparison.
37
+ - Write all questions in {language}.
38
+ - Return ONLY valid JSON:
39
+ {{"questions": [{slots}]}}
 
 
40
 
41
  Passage: {passage}"""
42