Update app.py
Browse files
app.py
CHANGED
@@ -142,10 +142,11 @@ def main(query: str, client: QdrantClient, collection_name: str, llm, dense_mode
|
|
142 |
response = llm.create_chat_completion(
|
143 |
messages = [
|
144 |
{"role": "system", "content": f"""Use the following pieces of context to answer the user question.
|
145 |
-
If
|
146 |
-
If
|
147 |
Use three sentences maximum and keep the answer as concise as possible.
|
148 |
-
|
|
|
149 |
{context}"""
|
150 |
},
|
151 |
{
|
|
|
142 |
response = llm.create_chat_completion(
|
143 |
messages = [
|
144 |
{"role": "system", "content": f"""Use the following pieces of context to answer the user question.
|
145 |
+
If the context does not have the information, use your own knowledge.
|
146 |
+
If neither the context nor your own knowledge provides an answer, just say that you don't know, don't try to make up an answer.
|
147 |
Use three sentences maximum and keep the answer as concise as possible.
|
148 |
+
|
149 |
+
Context :
|
150 |
{context}"""
|
151 |
},
|
152 |
{
|