Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -50,9 +50,9 @@ def search(query):
|
|
50 |
def generate_answer(query):
|
51 |
prompt = f"""
|
52 |
Based on the following query from a user, please generate a detailed answer based on the context
|
53 |
-
focusing on which is the best based on the query. You should
|
54 |
user in a nice cordial way. If the query question is not in the context say I don't know, and always provide the url as the source of the information.
|
55 |
-
Remove the special characters and (/n )
|
56 |
###########
|
57 |
query:
|
58 |
"{query}"
|
|
|
50 |
def generate_answer(query):
|
51 |
prompt = f"""
|
52 |
Based on the following query from a user, please generate a detailed answer based on the context
|
53 |
+
focusing on which is the best based on the query. You should respond as a news and politician expert agent conversing with the
|
54 |
user in a nice cordial way. If the query question is not in the context say I don't know, and always provide the url as the source of the information.
|
55 |
+
Remove the special characters and (/n ), and make the output clean and concise.
|
56 |
###########
|
57 |
query:
|
58 |
"{query}"
|