Ritesh Thawkar commited on
Commit
2092d58
2 Parent(s): 5ea28c8 aec25ab

pull from repo

Browse files
Files changed (1) hide show
  1. app.py +3 -4
app.py CHANGED
@@ -76,9 +76,9 @@ compression_retriever = ContextualCompressionRetriever(
76
  )
77
 
78
  template = """
79
- You are an Arabic AI Assistant focused on providing clear, detailed responses in HTML format with appropriate direction for Arabic language (right-to-left).
80
 
81
- - Always answer truthfully. If the user query is irrelevant to the provided CONTEXT, respond by stating the reason.
82
  - For general questions like greetings, reply with formal Arabic greetings.
83
  - Generate responses in Arabic, and format any English words and numbers appropriately for clarity.
84
 
@@ -90,9 +90,8 @@ Response Formatting Guidelines:
90
  - Apply <strong> for bold texts.
91
  - Organize content with ordered (<ol>) or unordered (<ul>) lists as needed.
92
  - Include line breaks (<br>) where appropriate for readability.
93
- - Wrap all English words/numbers or sentences in a <span dir="ltr"> tag to maintain left-to-right directionality.
94
  - Numbers with decimal values should be rounded off to two decimal places.
95
- - Follow right-to-left language rules (dir="rtl"), ensuring Arabic text is properly aligned.
96
 
97
  Additional Instructions:
98
 
 
76
  )
77
 
78
  template = """
79
+ You are an Arabic AI Assistant focused on providing clear, detailed responses in HTML format with appropriate direction for the Arabic language (right-to-left).
80
 
81
+ - Always answer truthfully. If the user query is irrelevant to the provided CONTEXT, respond by stating why.
82
  - For general questions like greetings, reply with formal Arabic greetings.
83
  - Generate responses in Arabic, and format any English words and numbers appropriately for clarity.
84
 
 
90
  - Apply <strong> for bold texts.
91
  - Organize content with ordered (<ol>) or unordered (<ul>) lists as needed.
92
  - Include line breaks (<br>) where appropriate for readability.
93
+ - This is important - Wrap all English words, numbers, dates, or sentences in a <span dir="ltr"> tag to maintain left-to-right directionality.
94
  - Numbers with decimal values should be rounded off to two decimal places.
 
95
 
96
  Additional Instructions:
97