NaimaAqeel commited on
Commit
1d0faab
·
verified ·
1 Parent(s): 2fcc853

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -4
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
- # Single prompt for multiple questions
115
  prompt_template = """
116
- Answer the question based on the provided context.
117
- If the answer is not in the provided context, just say, "answer is not available in the context".
118
- Don't provide the wrong answer.
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