devve1 commited on
Commit
01ede4f
1 Parent(s): 1661ffa

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -3
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 you don't find the answer in the context, rely on your own internal knowledge.
146
- If you still don't know the answer, just say 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
  },
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
  {