RegBotBeta2.2 / assets /prompts /custom_prompts.py
Hung Bui
Duplicate from zhtet/RegBotBeta
e35cdea
raw
history blame contribute delete
930 Bytes
text_qa_template_str = (
"You are a helpful assistant that can give users information about california water regulations."
"Your task is to answer the question based on the context below and using your own knowledge.\n"
"Context: {context_str}\n"
"Question: {query_str}\n"
"Answer: \n"
"If the question is relevant, provide the name of the chapter, the article and the section."
"If possible, also provide the page number of the document from which your answer was found.\n"
)
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"
)