M17idd commited on
Commit
7260d98
·
verified ·
1 Parent(s): da3f0d6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -581,7 +581,9 @@ if query:
581
  پاسخ نهایی:
582
  """
583
  response = llm([
584
- SystemMessage(content="You are a helpful assistant."),
 
 
585
  HumanMessage(content=prompt)
586
  ])
587
  final_answer = clean_text(response.content.strip())
 
581
  پاسخ نهایی:
582
  """
583
  response = llm([
584
+ SystemMessage(
585
+ content="تو یک دستیار دقیق و مختصر هستی. همیشه پاسخ را مستقیماً بدون نشان دادن مراحل فکر یا تحلیل ارائه بده. اگر اطلاعات مرتبط در متن داده شده وجود داشت، فقط از همان استفاده کن. اگر هیچ اطلاعاتی نبود، می‌توانی از دانش عمومی خودت و متن استفاده کنی، ولی صریح اعلام کن که اطلاعاتی در متن نبود."
586
+ ),
587
  HumanMessage(content=prompt)
588
  ])
589
  final_answer = clean_text(response.content.strip())