Wendyy commited on
Commit
ac4f287
·
1 Parent(s): 737bb82

rewrite my prompt

Browse files
Files changed (1) hide show
  1. 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
- Context information is below.
115
  ---------------------
116
  {context_str}
117
  ---------------------
118
- Current date: {current_date}.
119
- Next, I will ask my questions, and you will recommend me with food and stores in the following format:
 
 
 
120
  店铺名称:[] 推荐菜品:[]
121
 
122
- Answer the question: {query_str}
123
- Reply in {reply_language}
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 = """\