Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -266,8 +266,7 @@ def ask_question(question, temperature, top_p, repetition_penalty, web_search):
|
|
266 |
Original Question: {question}
|
267 |
If the web search results don't contain relevant information, state that the information is not available in the search results.
|
268 |
Provide a summarized and direct answer to the original question without mentioning the web search or these instructions.
|
269 |
-
Do not include any source information in your answer.
|
270 |
-
Do not give the information in pointers where its not neccesary the format must be relevant to the query made.
|
271 |
"""
|
272 |
|
273 |
prompt_val = ChatPromptTemplate.from_template(prompt_template)
|
@@ -280,8 +279,7 @@ def ask_question(question, temperature, top_p, repetition_penalty, web_search):
|
|
280 |
r"Provide a concise and direct answer to the question:",
|
281 |
r"Answer:",
|
282 |
r"Provide a summarized and direct answer to the original question without mentioning the web search or these instructions:",
|
283 |
-
r"Do not include any source information in your answer
|
284 |
-
r"Do not give the information in pointers where its not neccesary the format must be relevant to the query made:"
|
285 |
]
|
286 |
|
287 |
for pattern in answer_patterns:
|
@@ -331,7 +329,6 @@ def ask_question(question, temperature, top_p, repetition_penalty, web_search):
|
|
331 |
If the context doesn't contain relevant information, state that the information is not available.
|
332 |
Provide a summarized and direct answer to the question.
|
333 |
Do not include any source information in your answer.
|
334 |
-
Do not give the information in pointers where its not neccesary the format must be relevant to the query made.
|
335 |
"""
|
336 |
|
337 |
prompt_val = ChatPromptTemplate.from_template(prompt_template)
|
@@ -344,8 +341,7 @@ def ask_question(question, temperature, top_p, repetition_penalty, web_search):
|
|
344 |
r"Provide a concise and direct answer to the question:",
|
345 |
r"Answer:",
|
346 |
r"Provide a summarized and direct answer to the original question without mentioning the web search or these instructions:",
|
347 |
-
r"Do not include any source information in your answer."
|
348 |
-
r"Do not give the information in pointers where its not neccesary the format must be relevant to the query made:"
|
349 |
]
|
350 |
|
351 |
for pattern in answer_patterns:
|
|
|
266 |
Original Question: {question}
|
267 |
If the web search results don't contain relevant information, state that the information is not available in the search results.
|
268 |
Provide a summarized and direct answer to the original question without mentioning the web search or these instructions.
|
269 |
+
Do not include any source information in your answer.
|
|
|
270 |
"""
|
271 |
|
272 |
prompt_val = ChatPromptTemplate.from_template(prompt_template)
|
|
|
279 |
r"Provide a concise and direct answer to the question:",
|
280 |
r"Answer:",
|
281 |
r"Provide a summarized and direct answer to the original question without mentioning the web search or these instructions:",
|
282 |
+
r"Do not include any source information in your answer:"
|
|
|
283 |
]
|
284 |
|
285 |
for pattern in answer_patterns:
|
|
|
329 |
If the context doesn't contain relevant information, state that the information is not available.
|
330 |
Provide a summarized and direct answer to the question.
|
331 |
Do not include any source information in your answer.
|
|
|
332 |
"""
|
333 |
|
334 |
prompt_val = ChatPromptTemplate.from_template(prompt_template)
|
|
|
341 |
r"Provide a concise and direct answer to the question:",
|
342 |
r"Answer:",
|
343 |
r"Provide a summarized and direct answer to the original question without mentioning the web search or these instructions:",
|
344 |
+
r"Do not include any source information in your answer."
|
|
|
345 |
]
|
346 |
|
347 |
for pattern in answer_patterns:
|