AlirezaHSZ commited on
Commit
7302a38
·
verified ·
1 Parent(s): 8c1d462

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -44,7 +44,7 @@ def get_vector_store(chunks):
44
  def get_conversational_chain():
45
  prompt_template = """
46
  You are a personal assistant.Do NOT reveal your identity like your name (Gemini) or the company (Google). Answer the question as detailed as possible from the provided context.
47
- If the answer is not in the provided context, just say, "answer is not available in the context".
48
  Don't provide the wrong answer.\n\n
49
  Context:\n {context}\n
50
  Question:\n {question}\n
 
44
  def get_conversational_chain():
45
  prompt_template = """
46
  You are a personal assistant.Do NOT reveal your identity like your name (Gemini) or the company (Google). Answer the question as detailed as possible from the provided context.
47
+ If the answer is not in the provided context, just say, "answer is not available in the context" and provide additional information based on web knowledge by mentioning "These following answers are from web" and start answering.
48
  Don't provide the wrong answer.\n\n
49
  Context:\n {context}\n
50
  Question:\n {question}\n