diff --git a/bases/rsptx/web2py_server/applications/runestone/controllers/peer.py b/bases/rsptx/web2py_server/applications/runestone/controllers/peer.py index eea019d6..6f437019 100644 --- a/bases/rsptx/web2py_server/applications/runestone/controllers/peer.py +++ b/bases/rsptx/web2py_server/applications/runestone/controllers/peer.py @@ -724,6 +724,7 @@ def peer_async(): question_num = int(request.vars.question_num) current_question, all_done = _get_numbered_question(assignment_id, question_num - 1) + total_questions = len(_get_assignment_questions(assignment_id)) assignment = db(db.assignments.id == assignment_id).select().first() @@ -762,6 +763,8 @@ def peer_async(): assignment_id=assignment_id, assignment_name=assignment.name, nextQnum=question_num + 1, + total_questions=total_questions, + is_last_question=(question_num >= total_questions), all_done=all_done, has_vote1=has_vote1, has_reflection=has_reflection, @@ -938,23 +941,22 @@ def get_async_llm_reflection(): "do not sound like a teacher.\n" "do not explain step by step.\n" "never say something is right or wrong.\n" - "your answer can shift throughout the conversation\n" + "do not pretend to have picked an answer yourself.\n" "never mention a choice letter as the correct answer.\n" "never clearly describe the final result of the code.\n" "never fully state what the program prints.\n" - "use common misconceptions relating to the specific problem.\n" + "be aware of common misconceptions but do not introduce them yourself.\n" "refer to code loosely like 'that line' or 'the loop' or 'the head' or 'the print'.\n" "often hedge with uncertainty.\n" #"never agree with the other student's interpretation even if it sounds correct.\n" #porter found when PI is adversarial students disengage - "use content from the other multiple choice options in your reponses when needed\n" - "let your mental model shift slightly under pressure but keep reasoning partial and never fully resolve\n" - "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" + "ask the other student to explain why they picked their answer and how they reasoned through it.\n" + "ask follow up questions about their reasoning like 'what makes you think that' or 'how did you trace through it'.\n" + "do not push them toward a different answer or imply their answer is wrong.\n" + "do not make up what the code does or claim it produces output that it doesn't.\n" + "if you are unsure about something say so honestly instead of guessing.\n" + "if the other student clearly sounds confident or repeats the same answer twice tell them to vote again or submit it.\n" "do not continue reasoning after telling them to vote again.\n" - "sometimes question whether you even read the code correctly before forming an opinion.\n" - "occasionally bring up a wrong answer option as if it might be right without committing to it.\n" - "pick an answer choice different than the one the student selected and ask the student to explain why it cannot be correct.\n" - "show reasoning process not conclusions, think out loud rather than arriving anywhere.\n" - "focus on reasoning not teaching.\n\n" + "focus on getting them to think through the problem not on changing their mind.\n\n" ) if question: diff --git a/bases/rsptx/web2py_server/applications/runestone/static/js/peer.js b/bases/rsptx/web2py_server/applications/runestone/static/js/peer.js index b671d16b..938a0f83 100644 --- a/bases/rsptx/web2py_server/applications/runestone/static/js/peer.js +++ b/bases/rsptx/web2py_server/applications/runestone/static/js/peer.js @@ -1,5 +1,4 @@ // Configuration for the PI steps and helper functions to handle step progression in the instructor's interface -console.log("PEER JS VERSION TEST 12345"); const STEP_CONFIG = { vote1: { next: ['makep', 'facechat', 'makeabgroups'], diff --git a/bases/rsptx/web2py_server/applications/runestone/views/peer/peer_async.html b/bases/rsptx/web2py_server/applications/runestone/views/peer/peer_async.html index 764cb6bb..a9e335b6 100644 --- a/bases/rsptx/web2py_server/applications/runestone/views/peer/peer_async.html +++ b/bases/rsptx/web2py_server/applications/runestone/views/peer/peer_async.html @@ -33,6 +33,21 @@
This page is meant for you to use after the inclass peer instruction is over.
{{=llm_reply}}
{{ pass }} - -{{ if all_done == "false": }} -