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