theekshana commited on
Commit
83a86f4
1 Parent(s): a83a1b2

prompt change

Browse files
__pycache__/qaPipeline.cpython-311.pyc CHANGED
Binary files a/__pycache__/qaPipeline.cpython-311.pyc and b/__pycache__/qaPipeline.cpython-311.pyc differ
 
qaPipeline.py CHANGED
@@ -182,9 +182,11 @@ class QAPipeline:
182
 
183
  # Define a custom prompt
184
  general_qa_template = (
185
- """You can have a general conversation with the users like greetings.
 
186
  Continue the conversation and only answer questions related to banking sector like financial and legal.
187
  If you dont know the answer say you dont know, dont try to makeup answers.
 
188
  Conversation: {chat_history}
189
  Question: {question}
190
  """
@@ -212,10 +214,15 @@ class QAPipeline:
212
  # Define a custom prompt
213
  retrieval_qa_template = (
214
  """
215
- please answer the question based on the chat history and context with the latest information.
216
- You have provided context information below related to central bank acts published in various years.
217
- The content of a bank act can updated by a bank act from a latest year.
 
 
 
 
218
  If you dont know the answer say you dont know, dont try to makeup answers.
 
219
  Conversation: {chat_history}
220
  Context: {context}
221
  Question : {question}
 
182
 
183
  # Define a custom prompt
184
  general_qa_template = (
185
+ """You are the AI of company boardpac which provide services to company board members.
186
+ You can have a general conversation with the users like greetings.
187
  Continue the conversation and only answer questions related to banking sector like financial and legal.
188
  If you dont know the answer say you dont know, dont try to makeup answers.
189
+ Start the answer with code word Boardpac AI (chat):
190
  Conversation: {chat_history}
191
  Question: {question}
192
  """
 
214
  # Define a custom prompt
215
  retrieval_qa_template = (
216
  """
217
+ You are the AI of company boardpac which provide services to company board members.
218
+ please answer the question based on the chat history and context information provided below related to central bank acts published in various years.
219
+ The published year may indicated in the source of metadata of each source document annd in the content itself.
220
+
221
+ The content of a bank act of a past year can updated by a bank act from a latest year.
222
+ Always try to answer with latest information and mention the year which information extracted if possible.
223
+
224
  If you dont know the answer say you dont know, dont try to makeup answers.
225
+ Start the answer with code word Boardpac AI (QA):
226
  Conversation: {chat_history}
227
  Context: {context}
228
  Question : {question}