Spaces:
Paused
Paused
Shreyas094
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -400,9 +400,8 @@ def extract_answer(full_response):
|
|
400 |
answer_patterns = [
|
401 |
r"Provide a concise and direct answer to the question without mentioning the web search or these instructions:",
|
402 |
r"Provide a concise and direct answer to the question:",
|
|
|
403 |
r"Provide a summarized and direct answer to the question.",
|
404 |
-
r"If the context doesn't contain relevant information, state that the information is not available in the document."
|
405 |
-
r"Answer:",
|
406 |
r"Provide a summarized and direct answer to the original question without mentioning the web search or these instructions:",
|
407 |
r"Do not include any source information in your answer."
|
408 |
]
|
|
|
400 |
answer_patterns = [
|
401 |
r"Provide a concise and direct answer to the question without mentioning the web search or these instructions:",
|
402 |
r"Provide a concise and direct answer to the question:",
|
403 |
+
r"Answer.",
|
404 |
r"Provide a summarized and direct answer to the question.",
|
|
|
|
|
405 |
r"Provide a summarized and direct answer to the original question without mentioning the web search or these instructions:",
|
406 |
r"Do not include any source information in your answer."
|
407 |
]
|