mandrx commited on
Commit
d265137
1 Parent(s): 8fd8ba0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -80,7 +80,7 @@ def retrieve(query):
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)):
86
  if len("\n\n---\n\n".join(contexts[:i])) >= limit:
 
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} (concise)\nAnswer:"
84
  # append contexts until hitting limit
85
  for i in range(1, len(contexts)):
86
  if len("\n\n---\n\n".join(contexts[:i])) >= limit: