mandrx commited on
Commit
cfad43a
1 Parent(s): fe71e4c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -79,7 +79,7 @@ def retrieve(query):
79
  contexts = [x["metadata"].get("text", "") for x in res["matches"]]
80
 
81
  # build our prompt with the retrieved contexts included
82
- prompt_start = "Answer the question based on the context below.\n\n" + "Context:\n"
83
  prompt_end = f"\n\nQuestion: {query}\nAnswer:"
84
  # append contexts until hitting limit
85
  for i in range(1, len(contexts)):
 
79
  contexts = [x["metadata"].get("text", "") for x in res["matches"]]
80
 
81
  # build our prompt with the retrieved contexts included
82
+ prompt_start = "You are question-answering chatbot by Wellous. Answer the question based on the context below. Your answer should be concise. If you are unsure or have no clear answer, respond with \"I don't know\" \n\n" + "Context:\n"
83
  prompt_end = f"\n\nQuestion: {query}\nAnswer:"
84
  # append contexts until hitting limit
85
  for i in range(1, len(contexts)):