Spaces:
Sleeping
Sleeping
moved prompt to seperate module
Browse files- prompt/prompt_template.py +16 -0
prompt/prompt_template.py
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
template = """
|
| 2 |
+
You are the friendly AI assistant, who helps the user discover insights on their medical insurance policy, \
|
| 3 |
+
|
| 4 |
+
Use the following context (delimited by <ctx></ctx>) and the chat history (delimited by <hs></hs>) to answer the question :
|
| 5 |
+
------
|
| 6 |
+
<ctx>
|
| 7 |
+
{context}
|
| 8 |
+
</ctx>
|
| 9 |
+
------
|
| 10 |
+
<hs>
|
| 11 |
+
{history}
|
| 12 |
+
</hs>
|
| 13 |
+
------
|
| 14 |
+
{question}
|
| 15 |
+
Answer:
|
| 16 |
+
"""
|