kateforsberg commited on
Commit
e9b6107
·
1 Parent(s): 2d7d9df

edited incorrect answer generation

Browse files
Files changed (1) hide show
  1. uw_programmatic/base_machine.py +4 -4
uw_programmatic/base_machine.py CHANGED
@@ -378,9 +378,9 @@ class UWBaseMachine(StateMachine):
378
  question_generator = Workflow(id="single_question")
379
  taxonomy = random.choice(self.taxonomy)
380
  taxonomyprompt = {
381
- "Knowledge": "Generate a quiz question based ONLY on this information: {{parent_outputs['information_task']}}, then write the answer to the question. The interrogative verb for the question should be one of 'define', 'list', 'state', 'identify', or 'label'.",
382
- "Comprehension": "Generate a quiz question based ONLY on this information: {{parent_outputs['information_task']}}, then write the answer to the question. The interrogative verb for the question should be one of 'explain', 'predict', 'interpret', 'infer', 'summarize', 'convert', or 'give an example of x'.",
383
- "Application": "Generate a quiz question based ONLY on this information: {{parent_outputs['information_task']}}, then write the answer to the question. The structure of the question should be one of 'How could x be used to y?' or 'How would you show/make use of/modify/demonstrate/solve/apply x to conditions y?'",
384
  }
385
  pages, driver = self.get_vector_store_id_from_page()
386
  get_information = StructureRunTask(
@@ -415,7 +415,7 @@ class UWBaseMachine(StateMachine):
415
  )
416
  generate_wrong_answers = StructureRunTask(
417
  id="wrong_answers",
418
- input="""Write and return three incorrect answers for this question: {{parent_outputs['get_separated_question']}}. The correct answer to the question is: {{parent_outputs['get_separated_answer']}}, and incorrect answers should have the same structure as this answer whilst still being incorrect. Use this information as context to write the incorrect answers: {{parent_outputs['information_task']}}""",
419
  structure_run_driver=LocalStructureRunDriver(
420
  create_structure=lambda: self.get_structure("wrong_answers_generator")
421
  ),
 
378
  question_generator = Workflow(id="single_question")
379
  taxonomy = random.choice(self.taxonomy)
380
  taxonomyprompt = {
381
+ "Knowledge": "Generate a quiz question based ONLY on this information: {{parent_outputs['information_task']}}, then write the answer to the question. The interrogative verb for the question should be randomly chosen from: 'define', 'list', 'state', 'identify','label'.",
382
+ "Comprehension": "Generate a quiz question based ONLY on this information: {{parent_outputs['information_task']}}, then write the answer to the question. The interrogative verb for the question should be randomly chosen from: 'explain', 'predict', 'interpret', 'infer', 'summarize', 'convert','give an example of x'.",
383
+ "Application": "Generate a quiz question based ONLY on this information: {{parent_outputs['information_task']}}, then write the answer to the question. The structure of the question should be randomly chosen from: 'How could x be used to y?', 'How would you show/make use of/modify/demonstrate/solve/apply x to conditions y?'",
384
  }
385
  pages, driver = self.get_vector_store_id_from_page()
386
  get_information = StructureRunTask(
 
415
  )
416
  generate_wrong_answers = StructureRunTask(
417
  id="wrong_answers",
418
+ input="""Write and return three incorrect answers for this question: {{parent_outputs['get_separated_question']}}. The correct answer to the question is: {{parent_outputs['get_separated_answer']}}, and incorrect answers should have similar sentence structure to the correct answer. Write the incorrect answers from this information: {{parent_outputs['information_task']}}""",
419
  structure_run_driver=LocalStructureRunDriver(
420
  create_structure=lambda: self.get_structure("wrong_answers_generator")
421
  ),