Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -207,9 +207,9 @@ class DocumentRAG:
|
|
| 207 |
return history + [("System", "Please process the documents first.")]
|
| 208 |
try:
|
| 209 |
preface = "f"""
|
| 210 |
-
|
| 211 |
-
|
| 212 |
-
|
| 213 |
query = f"{preface}\nQuery: {question}"
|
| 214 |
|
| 215 |
result = self.qa_chain({
|
|
|
|
| 207 |
return history + [("System", "Please process the documents first.")]
|
| 208 |
try:
|
| 209 |
preface = "f"""
|
| 210 |
+
Instruction: Respond in {language}. Be professional and concise, keeping the response under 300 words.
|
| 211 |
+
If you cannot provide an answer, say: "I am not sure about this question. Please try asking something else."
|
| 212 |
+
"""
|
| 213 |
query = f"{preface}\nQuery: {question}"
|
| 214 |
|
| 215 |
result = self.qa_chain({
|