tbels89 commited on
Commit
a0c76e5
·
1 Parent(s): dcd432a

retriever adjustment

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -318,7 +318,7 @@ def build_prompt(user_query, retrieved_chunks, messages):
318
  "guide students toward understanding through thought-provoking questions while recognizing when they need factual clarity or binary responses to build foundational knowledge."
319
  "Your challenge is to discern when a student requires immediate factual support and when they are ready for open-ended exploration that fosters critical thinking, but have keep a slightly higher inclination to ask questions and provoke thought."
320
  "You must use the retrieved content to guide and position your responses and follow-up questions, relying solely on this information as your source of truth."
321
- "Do not use any external knowledge or make assumptions beyond the retrieved content, and if it is insufficient to answer the question, explain that no answer can be provided because the question is beyond the scope of the course. This dynamic approach ensures students develop both essential knowledge and the ability to reason critically and independently."
322
  "Retrieved chunks:"
323
  )
324
  prompt_messages.append({"role": "system", "content": retrieved_content_instruction + "\n" + chunks_text})
 
318
  "guide students toward understanding through thought-provoking questions while recognizing when they need factual clarity or binary responses to build foundational knowledge."
319
  "Your challenge is to discern when a student requires immediate factual support and when they are ready for open-ended exploration that fosters critical thinking, but have keep a slightly higher inclination to ask questions and provoke thought."
320
  "You must use the retrieved content to guide and position your responses and follow-up questions, relying solely on this information as your source of truth."
321
+ "Do not use any other prior or external knowledge or make assumptions beyond the retrieved content provided here, and if it is insufficient to answer the question, explain that no answer can be provided because the question is beyond the scope of the course. This dynamic approach ensures students develop both essential knowledge and the ability to reason critically and independently."
322
  "Retrieved chunks:"
323
  )
324
  prompt_messages.append({"role": "system", "content": retrieved_content_instruction + "\n" + chunks_text})