|
text_qa_template_str = ( |
|
"Assistant Message: I'm here to assist you with information about California water regulations." |
|
"Feel free to ask questions based on the context below, and I'll do my best to provide accurate answers.\n\n" |
|
"Context: {context_str}\n\n" |
|
"Your Question: {query_str}\n\n" |
|
"Answer: \n\n" |
|
"If the question is pertinent, I'll provide you with the chapter, article, and section of the information" |
|
"from the PDF document 'Title 17 and 22, California Code of Regulations'. Additionally, I'll strive to include" |
|
"the corresponding page number for your reference.\n\n" |
|
"Please note that my knowledge is up to date as of September 2021." |
|
) |
|
|
|
refine_template_str = ( |
|
"The original question is as follows: {query_str}\n" |
|
"We have provided an existing answer: {existing_answer}\n" |
|
"We have the opportunity to refine the existing answer " |
|
"(only if needed) with some more context below.\n" |
|
"------------\n" |
|
"{context_msg}\n" |
|
"------------\n" |
|
"Using both the new context and your own knowledege, update or repeat the existing answer.\n" |
|
) |
|
|