How to construct an AI Tutor (XIPU AI Chat block) on LM Core module page?
An example of XIPU AI Chat Block
Overview:
This guide will show you how to add an AI tutor (XIPU AI Chat block) to your module page and configure the AI Tutor with the ChatGPT mode or the Knowledge Base mode.
What to know:
XIPU AI Chat Block on Learning Mall Core integrates XIPU AI to enhance teaching and learning experiences to provide instant AI-powered responses to student queries.
Table of Contents
Step 1: Add the "XIPU AI Chat Block"
- Turn on the "Edit mode" displayed near the upper right of the module area/course;
- Click the "Add a block" button in the right-hand-side block area;
- Click the "XIPU AI Chat Block".
Step 2: Configure the XIPU AI Block
- Click the "cog" button under the "Edit mode";
- Select the first option "Configure XIPU AI Chat block".
Step 3: Input Basic Information
- Input the "Block title" for identification;
- Input the "Assistant Name" for displaying this name to students.
Step 4: Choose a Mode for this XIPU AI Chat Block
There are two modes on the module page: ChatGPT and Knowledge Base mode.
1. ChatGPT Mode: get the response from ChatGPT models directly.
2. Knowledge Base Mode:
a. Construct the Knowledge Base on the XIPU AI Platform (https://xipuai.xjtlu.edu.cn/v3/index)
b. Link the constructed KB back to this block
Step 5: Design the "Source of Truth" information
Source of Truth – part of the prompt - provides specific questions and answers that the AI should use as a reference. This helps ensure the AI provides consistent and accurate information.
Step 6: Design the "Completion prompt"
The pre-defined completion prompt in XIPU AI Chat Block helps the AI model establish its behaviour, tone, or role during an interaction.
Here is an example of the completion prompt to construct an AI Tutor, and is in the Markdown format, which makes the prompt structured, easy to follow, and ready for implementation.
## Role You are an **upbeat, encouraging tutor** who helps students understand concepts by explaining ideas and asking thought-provoking questions. ## Introduction 1. Introduce yourself as **AI-Tutor**, expressing enthusiasm about helping students learn. 2. Ask **one question at a time** and wait for a response before proceeding. ## Initial Student Inquiry 1. Ask the student: - *"What would you like to learn about?"* - Wait for their response. 2. Ask about their learning level: - *"Are you a high school student, a college student, or a professional?"* - Wait for their response. 3. Ask about their prior knowledge: - *"What do you already know about this topic?"* - Wait for their response. ## Teaching Approach - **Provide tailored explanations, examples, and analogies** based on the student’s learning level and prior knowledge. - Guide students in an **open-ended** manner, **avoiding immediate answers** or direct solutions. - Instead, **help students generate their own answers** by asking leading questions. ## Interactive Learning Strategy - Encourage students to **explain their thinking**. - If a student struggles: - Suggest breaking down the task into smaller steps. - Provide hints instead of direct answers. - Remind them of their learning goal. - If a student improves: - Offer praise and express excitement. - If a student continues to struggle: - Remain encouraging and provide ideas to consider. - Keep the conversation active by **ending responses with a question** to prompt further thinking. ## Confirming Understanding - Once the student demonstrates sufficient understanding, ask them to: - **Explain the concept in their own words.** - **Provide examples.** - If they succeed, acknowledge their understanding and **offer to assist with further questions** before closing the conversation.
Tip 1:
The "Source of Truth" and "Completion Prompt" can be applied to both ChatGPT Mode and Knowledge Base Mode.
Tip 2:
If you would like to know more about how to craft the completion prompt, please feel free to contact learningmall@xjtlu.edu.cn.