Project

General

Profile

Feature #3791

Updated by Ram Kordale 9 days ago

3772 colab has support to get detailed answers to MCQs. This ticket is to convert non-MCQ questions to MCQs. 

 As you know, inputFile contains values of keys such as "prefix-question", "prompt-5" etc. Add another key "answer-choice-creation-prompt-prefix-5". Suppose <accpp5-value> is the value, and <content> is the text below the "#$Exercise:" line in standard.txt. 

 Before processing a non-MCQ question, please do the following: 

 1. make the call to openai with prompt as "<accpp5-value> <content>". [As always, add support for True and False values for call_real_api.] 
 2. The response will be of the format "Choices are #$a. <choice 1> #$b. <choice 2> #$c <choice 3> #$d <choice 4>. #$#$correct choice: <correct-choice as in one of a, b, c or d>". <correct-choice>". 
 3. Convert the non-MCQ question as an MCQ with the above information. 
 4. Continue processing; however, do not add the above conversation to future conversation. processing.

Back