olumideola commited on
Commit
1416f8d
·
verified ·
1 Parent(s): 6e8f34a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -3
app.py CHANGED
@@ -28,9 +28,14 @@ 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
- - Each question must be answerable using ONLY this passage.
32
- - Vary the type: factual, yes/no, and a comparison or "why/how".
33
- - Natural, like a real user search query. Do NOT write "according to the passage".
 
 
 
 
 
34
  - Write the questions in {language}.
35
 
36
  Return ONLY JSON: {{"questions": [{slots}]}}
 
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}]}}