Task #3711
Tweaks to Question Answering Colab
100%
Description
Colab: https://colab.research.google.com/drive/14N0bH9RBm9lO28EuLXegA1BUzh4hDfXX
Fixes should work for all exercise problems in chapter 1. So, it does not need support for figures in question and answer.
o detailed questions and answers are obtained in the following format: \n %%---%%---%%%###Question: <Detailed Question 1>\n ###Answer: <Detailed Question 1's Answer>###Concept:<Concept in provided text>\n ###Question: <Detailed Question 2> \n ###Answer: <Detailed Question 2's Answer> ###Concept:<Concept in provided text>\n...\n%%%---%%%---%%%
o Construct DetailedQNAs by ignoring delimiters and Concept field
o Construct Detailed Answer field as “Question: <Detailed Question 1>\nAnswer: <Detailed Question 1's Answer>\n\n Question: <Detailed Question 2> \n Answer: <Detailed Question 2's Answer> and so on.
o If we do not get at least 4 detailed questions, try again. if the same thing happens, try one more time. If the same thing happens, stop execution.
o if we get text containing $$$-$$$, try just one more time. If the same thing happens, stop execution.