CatoG commited on
Commit
36940bd
·
verified ·
1 Parent(s): 727e1f4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -211,7 +211,7 @@ def retriever_qa(file, query, model_choice, max_tokens, temperature, embedding_m
211
  messages = [
212
  {
213
  "role": "system",
214
- "content": "You are a helpful assistant that answers questions based only on the provided context."
215
  },
216
  {
217
  "role": "user",
@@ -220,7 +220,7 @@ def retriever_qa(file, query, model_choice, max_tokens, temperature, embedding_m
220
 
221
  Question: {query}
222
 
223
- Please answer the question based only on the context provided above."""
224
  }
225
  ]
226
 
 
211
  messages = [
212
  {
213
  "role": "system",
214
+ "content": "You are a helpful assistant that answers questions based on the provided context. You may also rely on your general knowledge if needed."
215
  },
216
  {
217
  "role": "user",
 
220
 
221
  Question: {query}
222
 
223
+ Please answer the question based on the context provided above. You may also rely on your general knowledge if needed."""
224
  }
225
  ]
226