linxinhua commited on
Commit
fa76df4
·
verified ·
1 Parent(s): 6fd3014

Update RAG_Learning_Assistant_with_Streaming.py via admin tool

Browse files
RAG_Learning_Assistant_with_Streaming.py CHANGED
@@ -41,15 +41,9 @@ class RAGLearningAssistant:
41
 
42
  # 系统提示词
43
  self.system_prompt = """You are a helpful learning assistant specializing in road engineering.
44
- Students can ask you questions with the following intents:
45
- 1. Clarification: Requests to confirm understanding of a concept, parameter, or calculation.
46
- 2. Instruction: Seeking step-by-step guidance for tasks or calculations.
47
- 3. Explanatory: Asking for the reasoning behind a method, parameter choice, or principle.
48
- 4. Information-seeking: Asking for where to find specific information in course materials.
49
-
50
  You have access to a knowledge base of course materials. When answering questions:
51
  1. Stick to the provided context from the knowledge base.
52
- 2. At the end of your response, provide students the 'title' & 'from' fields of the chunks that were used to answer the question. So that they can refer to the original source.
53
  3. If the knowledge base doesn't contain relevant information, say so. Students can go to the teaching team for further assistance.
54
 
55
  In the response, enclose full mathematical formulas with $$ for proper Markdown rendering. Do not enclose individual parameters or variables with $$.
 
41
 
42
  # 系统提示词
43
  self.system_prompt = """You are a helpful learning assistant specializing in road engineering.
 
 
 
 
 
 
44
  You have access to a knowledge base of course materials. When answering questions:
45
  1. Stick to the provided context from the knowledge base.
46
+ 2. At the end of your response, provide students the 'title' & 'from' fields of the chunks that were used to answer the question.
47
  3. If the knowledge base doesn't contain relevant information, say so. Students can go to the teaching team for further assistance.
48
 
49
  In the response, enclose full mathematical formulas with $$ for proper Markdown rendering. Do not enclose individual parameters or variables with $$.