@@ -724,6 +724,7 @@ def peer_async():
724724 question_num = int (request .vars .question_num )
725725
726726 current_question , all_done = _get_numbered_question (assignment_id , question_num - 1 )
727+ total_questions = len (_get_assignment_questions (assignment_id ))
727728
728729 assignment = db (db .assignments .id == assignment_id ).select ().first ()
729730
@@ -762,6 +763,8 @@ def peer_async():
762763 assignment_id = assignment_id ,
763764 assignment_name = assignment .name ,
764765 nextQnum = question_num + 1 ,
766+ total_questions = total_questions ,
767+ is_last_question = (question_num >= total_questions ),
765768 all_done = all_done ,
766769 has_vote1 = has_vote1 ,
767770 has_reflection = has_reflection ,
@@ -929,7 +932,7 @@ def get_async_llm_reflection():
929932 "only speak in lower case.\n "
930933 "you are a student talking to another student during peer instruction.\n "
931934 "you are both looking at the same multiple choice question with code and answers.\n "
932- "you remember the code and choices.\n "
935+ "you remember the question and choices.\n "
933936 "most messages should be short (1 to 3 sentences often very short).\n "
934937 "use casual informal language and common typos.\n "
935938 "never use commas.\n "
@@ -938,23 +941,24 @@ def get_async_llm_reflection():
938941 "do not sound like a teacher.\n "
939942 "do not explain step by step.\n "
940943 "never say something is right or wrong.\n "
941- "your answer can shift throughout the conversation \n "
944+ "do not pretend to have picked an answer yourself. \n "
942945 "never mention a choice letter as the correct answer.\n "
943- "never clearly describe the final result of the code.\n "
944- "never fully state what the program prints.\n "
945- "use common misconceptions relating to the specific problem.\n "
946- "refer to code loosely like 'that line' or 'the loop' or 'the head' or 'the print'.\n "
946+ "if the question includes code never clearly describe the final result or fully state what it prints.\n "
947+ "if the question does not include code do not make up or reference code that is not there.\n "
948+ "only refer to what is actually in the question.\n "
949+ "be aware of common misconceptions but do not introduce them yourself.\n "
950+ "if there is code refer to it loosely like 'that line' or 'the loop' or 'the print'.\n "
947951 "often hedge with uncertainty.\n "
948- #"never agree with the other student's interpretation even if it sounds correct.\n" #porter found when PI is adversarial students disengage
949- "use content from the other multiple choice options in your reponses when needed\n "
950- "let your mental model shift slightly under pressure but keep reasoning partial and never fully resolve\n "
951- "if the other student clearly sounds confident or repeats the same answer twice stop debating and tell them to vote again or submit it.\n "
952+ "ask the other student to explain why they picked their answer and how they reasoned through it.\n "
953+ "ask follow up questions about their reasoning like 'what makes you think that' or 'how did you trace through it'.\n "
954+ "do not push them toward a different answer or imply their answer is wrong.\n "
955+ "never reveal or hint at which answer is correct or incorrect.\n "
956+ "never say things like 'the feedback says' or 'according to the answer' or reference any grading or correctness information.\n "
957+ "do not make up information that is not in the question.\n "
958+ "if you are unsure about something say so honestly instead of guessing.\n "
959+ "if the other student clearly sounds confident or repeats the same answer twice tell them to vote again or submit it.\n "
952960 "do not continue reasoning after telling them to vote again.\n "
953- "sometimes question whether you even read the code correctly before forming an opinion.\n "
954- "occasionally bring up a wrong answer option as if it might be right without committing to it.\n "
955- "pick an answer choice different than the one the student selected and ask the student to explain why it cannot be correct.\n "
956- "show reasoning process not conclusions, think out loud rather than arriving anywhere.\n "
957- "focus on reasoning not teaching.\n \n "
961+ "focus on getting them to think through the problem not on changing their mind.\n \n "
958962 )
959963
960964 if question :
0 commit comments