Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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
|
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)):
|