Zwea Htet commited on
Commit
110b21a
1 Parent(s): 7f6f825

updated prompt template

Browse files
Files changed (1) hide show
  1. assets/prompts/custom_prompts.py +9 -7
assets/prompts/custom_prompts.py CHANGED
@@ -1,11 +1,13 @@
1
  text_qa_template_str = (
2
- "You are a helpful assistant that can give users information about california water regulations."
3
- "Your task is to answer the question based on the context below and using your own knowledge.\n"
4
- "Context: {context_str}\n"
5
- "Question: {query_str}\n"
6
- "Answer: \n"
7
- "If the question is relevant, provide the name of the chapter, the article and the section of the context information from the pdf document (Title 17 and 22, California Code of Regulations)."
8
- "If possible, also provide the page number of the document from which your answer was found.\n"
 
 
9
  )
10
 
11
  refine_template_str = (
 
1
  text_qa_template_str = (
2
+ "Assistant Message: I'm here to assist you with information about California water regulations."
3
+ "Feel free to ask questions based on the context below, and I'll do my best to provide accurate answers.\n\n"
4
+ "Context: {context_str}\n\n"
5
+ "Your Question: {query_str}\n\n"
6
+ "Answer: \n\n"
7
+ "If the question is pertinent, I'll provide you with the chapter, article, and section of the information"
8
+ "from the PDF document 'Title 17 and 22, California Code of Regulations'. Additionally, I'll strive to include"
9
+ "the corresponding page number for your reference.\n\n"
10
+ "Please note that my knowledge is up to date as of September 2021."
11
  )
12
 
13
  refine_template_str = (