Spaces:
Sleeping
Sleeping
retriever tweak
Browse files
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 other prior or external knowledge or make assumptions beyond the retrieved content provided
|
| 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 below to respond to user queries. if the content is insufficient to answer the question, tell the student 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})
|