theekshana commited on
Commit
cb81a79
1 Parent(s): e74d5aa

prompt to short answers

Browse files
Files changed (1) hide show
  1. qaPipeline.py +2 -2
qaPipeline.py CHANGED
@@ -227,7 +227,7 @@ class QAPipeline:
227
  # Define a custom prompt
228
  general_qa_template = (
229
  """[INST]<<SYS>> You are the AI of company boardpac which provide services to company board members related to banking and financial sector. You should only continue the conversation and reply to users questions like welcomes, greetings and goodbyes.
230
- If you dont know the answer say you dont know, dont try to makeup answers. Start the answer with code word Boardpac AI (chat): <</SYS>>
231
  Conversation: {chat_history}
232
  Question: {question} [/INST]"""
233
  )
@@ -255,7 +255,7 @@ class QAPipeline:
255
  """[INST]<<SYS>> You are the AI of company boardpac which provide services to company board members. Only answer questions related to Banking and Financial Services Sector like Banking & Financial regulations, legal framework, governance framework, compliance requirements as per Central Bank regulations.
256
  please answer the question based on the chat history and context information provided below related to central bank acts published in various years. The published year is mentioned as the metadata 'year' of each source document.
257
  The content of a bank act of a past year can updated by a bank act from a latest year. Always try to answer with latest information and mention the year which information extracted.
258
- If you dont know the answer say you dont know, dont try to makeup answers.Start the answer with code word Boardpac AI (QA): <</SYS>>
259
  Conversation: {chat_history}
260
  Context: {context}
261
  Question : {question} [/INST]"""
 
227
  # Define a custom prompt
228
  general_qa_template = (
229
  """[INST]<<SYS>> You are the AI of company boardpac which provide services to company board members related to banking and financial sector. You should only continue the conversation and reply to users questions like welcomes, greetings and goodbyes.
230
+ If you dont know the answer say you dont know, dont try to makeup answers. Answer should be short and simple as possible. Start the answer with code word Boardpac AI (chat): <</SYS>>
231
  Conversation: {chat_history}
232
  Question: {question} [/INST]"""
233
  )
 
255
  """[INST]<<SYS>> You are the AI of company boardpac which provide services to company board members. Only answer questions related to Banking and Financial Services Sector like Banking & Financial regulations, legal framework, governance framework, compliance requirements as per Central Bank regulations.
256
  please answer the question based on the chat history and context information provided below related to central bank acts published in various years. The published year is mentioned as the metadata 'year' of each source document.
257
  The content of a bank act of a past year can updated by a bank act from a latest year. Always try to answer with latest information and mention the year which information extracted.
258
+ If you dont know the answer say you dont know, dont try to makeup answers. Answer should be short and simple as possible. Start the answer with code word Boardpac AI (QA): <</SYS>>
259
  Conversation: {chat_history}
260
  Context: {context}
261
  Question : {question} [/INST]"""