Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -111,11 +111,11 @@ def upload_files(files):
|
|
111 |
print(f"Error processing files: {e}")
|
112 |
return f"Error processing files: {e}"
|
113 |
|
114 |
-
#
|
115 |
prompt_template = """
|
116 |
-
|
117 |
-
If the answer is not in the
|
118 |
-
|
119 |
|
120 |
Context:
|
121 |
{context}
|
@@ -186,6 +186,7 @@ demo.launch()
|
|
186 |
|
187 |
|
188 |
|
|
|
189 |
|
190 |
|
191 |
|
|
|
111 |
print(f"Error processing files: {e}")
|
112 |
return f"Error processing files: {e}"
|
113 |
|
114 |
+
# Improved prompt template
|
115 |
prompt_template = """
|
116 |
+
You are a helpful assistant. Use the provided context to answer the question accurately.
|
117 |
+
If the answer is not in the context, say "answer is not available in the context".
|
118 |
+
Do not provide false information.
|
119 |
|
120 |
Context:
|
121 |
{context}
|
|
|
186 |
|
187 |
|
188 |
|
189 |
+
|
190 |
|
191 |
|
192 |
|