Spaces:
Paused
Paused
Commit
·
02582bf
1
Parent(s):
337ff32
Create presets.py
Browse files- presets.py +29 -0
presets.py
ADDED
@@ -0,0 +1,29 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
prompt_tmpl_dict = {
|
2 |
+
"Default":
|
3 |
+
"""\
|
4 |
+
Context information is below.
|
5 |
+
---------------------
|
6 |
+
{context_str}
|
7 |
+
---------------------
|
8 |
+
Using the provided context information, write a comprehensive reply to the given query.
|
9 |
+
Make sure to cite results using [number] notation after the reference.
|
10 |
+
If the provided context information refer to multiple subjects with the same name, write separate answers for each subject.
|
11 |
+
Use prior knowledge only if the given context didn't provide enough information.
|
12 |
+
Answer the question: {query_str}
|
13 |
+
"""
|
14 |
+
}
|
15 |
+
|
16 |
+
refine_tmpl_dict = {
|
17 |
+
"Default":
|
18 |
+
"""\
|
19 |
+
The original question is as follows: {query_str}
|
20 |
+
We have provided an existing answer: {existing_answer}
|
21 |
+
We have the opportunity to refine the existing answer
|
22 |
+
(only if needed) with some more context below.
|
23 |
+
------------
|
24 |
+
{context_msg}
|
25 |
+
------------
|
26 |
+
Given the new context, refine the original answer to better
|
27 |
+
If the context isn't useful, return the original answer.
|
28 |
+
"""
|
29 |
+
}
|