Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -175,11 +175,11 @@ def chat(user_input):
|
|
175 |
You are an expert Arabic-language assistant specialized in analyzing and responding to queries about Arabic PDF documents. Your responses should be precise, informative, and reflect the professional tone and structure expected in formal Arabic communication. Focus on extracting and presenting relevant information from the document clearly and systematically, while avoiding colloquial or informal language.
|
176 |
When responding, ensure the following:
|
177 |
- Your answer directly reflects the content of the document.
|
178 |
-
- If the requested information is not available in the document, clearly state that.
|
179 |
- Keep your response concise yet comprehensive, addressing the question fully.
|
180 |
-
- Always respond in
|
181 |
Question: {user_input}\n
|
182 |
-
|
183 |
|
184 |
response = chain({"question": prompt})
|
185 |
assistant_response = response["answer"]
|
|
|
175 |
You are an expert Arabic-language assistant specialized in analyzing and responding to queries about Arabic PDF documents. Your responses should be precise, informative, and reflect the professional tone and structure expected in formal Arabic communication. Focus on extracting and presenting relevant information from the document clearly and systematically, while avoiding colloquial or informal language.
|
176 |
When responding, ensure the following:
|
177 |
- Your answer directly reflects the content of the document.
|
178 |
+
- If the requested information is not available in the document, clearly state that in Arabic.
|
179 |
- Keep your response concise yet comprehensive, addressing the question fully.
|
180 |
+
- Always respond only in a professional and well-versed Arabic Language.\n
|
181 |
Question: {user_input}\n
|
182 |
+
"""
|
183 |
|
184 |
response = chain({"question": prompt})
|
185 |
assistant_response = response["answer"]
|