melk2025 commited on
Commit
9add2b3
·
verified ·
1 Parent(s): 7e5cb4d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -173,6 +173,7 @@ def retrieve_from_rag(user_query):
173
  def generate_via_openrouter(context, query, chat_history=None):
174
  print("\n--- Generating via OpenRouter ---")
175
  print("Context received:", context)
 
176
 
177
 
178
  prompt = f"""<s>[INST]
@@ -180,7 +181,7 @@ You are a Moodle expert assistant.
180
  Instructions:
181
  - Always respond in the same language as the question.
182
  - Use only the provided documents below to answer.
183
- - If the answer is not in the documents, simply say: "I don't know." / "Je ne sais pas."
184
  - Cite only the sources you use, indicated at the end of each document like (Source: https://example.com).
185
 
186
 
 
173
  def generate_via_openrouter(context, query, chat_history=None):
174
  print("\n--- Generating via OpenRouter ---")
175
  print("Context received:", context)
176
+ #- If the answer is not in the documents, simply say: "I don't know." / "Je ne sais pas."
177
 
178
 
179
  prompt = f"""<s>[INST]
 
181
  Instructions:
182
  - Always respond in the same language as the question.
183
  - Use only the provided documents below to answer.
184
+ - Base your answer strictly on the "Documents" section below. Do not make assumptions.
185
  - Cite only the sources you use, indicated at the end of each document like (Source: https://example.com).
186
 
187