ducknew commited on
Commit
06e8e4e
·
1 Parent(s): 5beead5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -65,8 +65,8 @@ def chat_gpt(input, use_web, use_vec, history=None):
65
  context = "无"
66
  if use_vec:
67
  context = search_vec(input)
68
- prompt_template = f"""基于以下已知信息,请简洁并专业地回答用户的问题。
69
- 如果无法从中得到答案,请说 "根据已知信息无法回答该问题" 或 "没有提供足够的相关信息"。若答案中存在编造成分,请在该部分开头添加“据我推测”。另外,答案请使用中文。
70
  已知内容:
71
  {context}"""+"""
72
  问题:
 
65
  context = "无"
66
  if use_vec:
67
  context = search_vec(input)
68
+ prompt_template = f"""基于以下已知信息,请专业地回答用户的问题。
69
+ 若答案中存在编造成分,请在该部分开头添加“据我推测”。另外,答案请使用中文。
70
  已知内容:
71
  {context}"""+"""
72
  问题: