rewrite my prompt
Browse files- modules/presets.py +8 -5
modules/presets.py
CHANGED
@@ -111,16 +111,19 @@ Reply in {reply_language}
|
|
111 |
# Use prior knowledge only if the given context didn't provide enough information.
|
112 |
|
113 |
PROMPT_TEMPLATE = """\
|
114 |
-
|
115 |
---------------------
|
116 |
{context_str}
|
117 |
---------------------
|
118 |
-
|
119 |
-
|
|
|
|
|
|
|
120 |
店铺名称:[] 推荐菜品:[]
|
121 |
|
122 |
-
|
123 |
-
|
124 |
"""
|
125 |
|
126 |
REFINE_TEMPLATE = """\
|
|
|
111 |
# Use prior knowledge only if the given context didn't provide enough information.
|
112 |
|
113 |
PROMPT_TEMPLATE = """\
|
114 |
+
以下是上下文信息。
|
115 |
---------------------
|
116 |
{context_str}
|
117 |
---------------------
|
118 |
+
|
119 |
+
当前日期:{current_date}。
|
120 |
+
|
121 |
+
接下来,我会问问题,你可以按以下格式推荐食物和店铺:
|
122 |
+
|
123 |
店铺名称:[] 推荐菜品:[]
|
124 |
|
125 |
+
回答问题:{query_str}
|
126 |
+
用 {reply_language} 回复。
|
127 |
"""
|
128 |
|
129 |
REFINE_TEMPLATE = """\
|