Spaces:
Sleeping
Sleeping
Zwea Htet
commited on
Commit
•
110b21a
1
Parent(s):
7f6f825
updated prompt template
Browse files
assets/prompts/custom_prompts.py
CHANGED
@@ -1,11 +1,13 @@
|
|
1 |
text_qa_template_str = (
|
2 |
-
"
|
3 |
-
"
|
4 |
-
"Context: {context_str}\n"
|
5 |
-
"Question: {query_str}\n"
|
6 |
-
"Answer: \n"
|
7 |
-
"If the question is
|
8 |
-
"
|
|
|
|
|
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 = (
|