Skip to content

Commit

Permalink
resolves #2
Browse files Browse the repository at this point in the history
  • Loading branch information
GanymedeNil committed Mar 11, 2023
1 parent ac7e021 commit f1f06e6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions code/server/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ def prompt(question, answers):
"""
生成对话的示例提示语句,格式如下:
demo_q:
使用以下段落来回答问题:"成人头疼,流鼻涕是感冒还是过敏?"
使用以下段落来回答问题,如果段落内容不相关就返回未查到相关信息:"成人头疼,流鼻涕是感冒还是过敏?"
1. 普通感冒:您会出现喉咙发痒或喉咙痛,流鼻涕,流清澈的稀鼻涕(液体),有时轻度发热。
2. 常年过敏:症状包括鼻塞或流鼻涕,鼻、口或喉咙发痒,眼睛流泪、发红、发痒、肿胀,打喷嚏。
demo_a:
Expand All @@ -23,7 +23,7 @@ def prompt(question, answers):
demo_q = '使用以下段落来回答问题:"成人头疼,流鼻涕是感冒还是过敏?"\n1. 普通感冒:您会出现喉咙发痒或喉咙痛,流鼻涕,流清澈的稀鼻涕(液体),有时轻度发热。\n2. 常年过敏:症状包括鼻塞或流鼻涕,鼻、口或喉咙发痒,眼睛流泪、发红、发痒、肿胀,打喷嚏。'
demo_a = '成人出现头痛和流鼻涕的症状,可能是由于普通感冒或常年过敏引起的。如果病人出现咽喉痛和咳嗽,感冒的可能性比较大;而如果出现口、喉咙发痒、眼睛肿胀等症状,常年过敏的可能性比较大。'
system = '你是一个医院问诊机器人'
q = '使用以下段落来回答问题:"'
q = '使用以下段落来回答问题,如果段落内容不相关就返回未查到相关信息:"'
q += question + '"'
# 带有索引的格式
for index, answer in enumerate(answers):
Expand Down

0 comments on commit f1f06e6

Please sign in to comment.