Update app.py
Browse files
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
|
| 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
|
| 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 |
|