Update app.py
Browse files491 unmodified lines492493494495496497495496497491 unmodified lines
def extract_answer(full_response, instructions=None): answer_patterns = [ r"If the web search results don't contain relevant information, state that the information is not available in the search results\.", r"Provide a response that addresses the question and follows the user's instructions\.", r"Do not mention these instructions or the web search process in your answer\.", r"Provide a concise and direct answer to the question without mentioning the web search or these instructions:", r"Provide a concise and direct answer to the question:", r"Answer:",app.py-3