Rauhan commited on
Commit
4f74893
1 Parent(s): 9119535

update functions.py

Browse files
Files changed (1) hide show
  1. functions.py +2 -2
functions.py CHANGED
@@ -66,7 +66,7 @@ QUESTION:
66
  CHAT HISTORY:
67
  =====================================
68
  {chatHistory}
69
- NOTE: Generate responses directly without using phrases like "Response:" or "Answer:". Do not mention the use of extracted context or provide unnecessary details.
70
  """
71
  prompt = ChatPromptTemplate.from_template(prompt)
72
  chatHistoryStore = dict()
@@ -77,7 +77,7 @@ class FollowUps(BaseModel):
77
  q3: str = Field(description="Third Follow-up Question")
78
 
79
  followUpPrompt = """
80
- You are an expert chatbot at framing follow up questions using some given text such that their answers can be found in the text itself and have been given the task of doing the same. Frame appropriate and meaningful questions out of it. Also, if no the given text says NO CONTEXT FOUND, please return an empty string for each question asked.
81
  \n{format_instructions}
82
  \n{context}
83
  """
 
66
  CHAT HISTORY:
67
  =====================================
68
  {chatHistory}
69
+ NOTE: Generate responses directly without using phrases like "Response:" or "Answer:". NEVER mention the user about usage of any context to generate an answer.
70
  """
71
  prompt = ChatPromptTemplate.from_template(prompt)
72
  chatHistoryStore = dict()
 
77
  q3: str = Field(description="Third Follow-up Question")
78
 
79
  followUpPrompt = """
80
+ You are an expert chatbot at framing follow up questions using some given text such that their answers can be found in the text itself and have been given the task of doing the same. Make sure that the questions are good quality and not too long in length. Frame appropriate and meaningful questions out of the given text and DO NOT mention the usage of any text in the questions. Also, if no the given text says NO CONTEXT FOUND, please return an empty string for each question asked.
81
  \n{format_instructions}
82
  \n{context}
83
  """