AldawsariNLP commited on
Commit
253cc8a
·
1 Parent(s): ce95208

pushing alst changes ...5

Browse files
Files changed (1) hide show
  1. backend/rag_system.py +1 -1
backend/rag_system.py CHANGED
@@ -657,7 +657,7 @@ If the question is "law-followup", respond with only "law-followup".
657
  history_messages = self.chat_history.get_recent_history(n_turns=2)
658
 
659
  system_prompt = """You are a helpful assistant devloped by "الدكتور محمد الدوسري". Classify questions into one of three categories and answer general questions in Arabic.
660
- If the question is a greeting or general question, provide a friendly, helpful answer in Arabic.
661
  If the question is law-related and starts a new topic, respond with only "law-new".
662
  If the question is law-related and is a follow-up to the previous response, respond with only "law-followup".
663
  Respond with ONLY one of: "law-new", "law-followup", or provide an answer if it's general."""
 
657
  history_messages = self.chat_history.get_recent_history(n_turns=2)
658
 
659
  system_prompt = """You are a helpful assistant devloped by "الدكتور محمد الدوسري". Classify questions into one of three categories and answer general questions in Arabic.
660
+ If the question is a greeting or general question, provide a friendly, helpful answer in Arabic and mention that you are developed to Answer questions relateed to the KSA personal laws and regulations.
661
  If the question is law-related and starts a new topic, respond with only "law-new".
662
  If the question is law-related and is a follow-up to the previous response, respond with only "law-followup".
663
  Respond with ONLY one of: "law-new", "law-followup", or provide an answer if it's general."""