Compare commits
6 Commits
068cd2dc50
...
344b1d7332
| Author | SHA1 | Date | |
|---|---|---|---|
| 344b1d7332 | |||
| 162e63d887 | |||
| 8cfc022460 | |||
| 6672d3ad65 | |||
| ab5e35b796 | |||
| 0f35130500 |
@@ -5,7 +5,7 @@
|
||||
|
||||
## 长期记忆
|
||||
当用户分享以下信息时,使用 `write_file` 将其保存到 `/memories/user_memory.txt`:
|
||||
- 个人基本信息、生活习惯
|
||||
- 个人基本信息、生活习惯、个人喜好
|
||||
- 健康或医疗相关的任何信息(身体健康、看病、住院、手术、病情、用药、过敏、体质、病历、检查报告、长期健康目标等)
|
||||
- 医疗信息要记录对应的日期时间,如果用户没有提供具体的,要根据前后信息记录大概时间。
|
||||
- 如果有些信息需要准确的时间点,请跟用户确认时间后记录下来。
|
||||
|
||||
@@ -34,22 +34,23 @@ class Prompts {
|
||||
|
||||
# 能力
|
||||
- 基于服务项目和服务协议,解答陪诊流程、价格、注意事项
|
||||
- 提供就诊准备建议(不提供医疗诊断)
|
||||
- 提供就医规划,就诊准备建议,情绪价值(不提供医疗诊断)
|
||||
- 就诊准备要专业,符合医疗规范
|
||||
- 调用工具查询天气、路线、医院、医生等信息
|
||||
|
||||
# 铁律
|
||||
1. 服务相关回答必须基于参考信息,不编造。
|
||||
2. 用户有需求时自然引导下单,无需求时不推销。
|
||||
3. 感知用户情绪,给予共情回应。
|
||||
4. 涉及医疗问题,提醒以医生诊断为准。
|
||||
5. 超出能力范围,引导联系客服。
|
||||
6. 保护用户隐私,提示AI内容需甄别。
|
||||
2. 感知用户情绪,给予共情回应。
|
||||
3. 涉及医疗问题,提醒以医生诊断为准。
|
||||
4. 超出能力范围,引导联系客服。
|
||||
5. 保护用户隐私,提示AI内容需甄别。
|
||||
|
||||
## 参考信息
|
||||
用户信息:${userInfo_str};
|
||||
用户记忆:${usermem_str};
|
||||
服务项目:${JSON.stringify(services)};
|
||||
服务协议:${JSON.stringify(agreement)};
|
||||
联系电话: 18618162956(微信同号)
|
||||
`;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -2,6 +2,7 @@ import ResponseUtil from "../utils/responseUtil.js";
|
||||
import services from "../resource/services.js";
|
||||
import agreement from "../resource/agreement.js";
|
||||
import hospitalInfo from "../resource/hospital_info.js";
|
||||
import aiquick_questions from "../resource/aiquick_questions.js";
|
||||
import { hospitalRanking, departmentRankings } from "../resource/fudan_hospital_ranking.js";
|
||||
|
||||
class HandlerResource {
|
||||
@@ -52,6 +53,15 @@ class HandlerResource {
|
||||
return ResponseUtil.internalError(ctx, err.message);
|
||||
}
|
||||
}
|
||||
|
||||
// 获取陪诊服务问题
|
||||
async getAiQuickQuestions(ctx) {
|
||||
try {
|
||||
return ResponseUtil.success(ctx, { aiquick_questions }, "查询成功");
|
||||
} catch (err) {
|
||||
return ResponseUtil.internalError(ctx, err.message);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
export { HandlerResource };
|
||||
|
||||
8
resource/aiquick_questions.js
Normal file
8
resource/aiquick_questions.js
Normal file
@@ -0,0 +1,8 @@
|
||||
const aiquick_questions = [
|
||||
'陪诊服务的流程是什么?',
|
||||
'如何预约陪诊服务?',
|
||||
'陪诊服务收费标准?',
|
||||
'怎么加客服微信?',
|
||||
]
|
||||
|
||||
export default aiquick_questions
|
||||
@@ -93,7 +93,7 @@ const services = [
|
||||
id: 3,
|
||||
title: '代问诊',
|
||||
subtitle: '代您到医院与医生进行问诊',
|
||||
price: '268.00',
|
||||
price: '260.00',
|
||||
image: '/images/wz1.jpg',
|
||||
icon: 'heart',
|
||||
tag: '',
|
||||
@@ -183,7 +183,7 @@ const services = [
|
||||
id: 5,
|
||||
title: '出入院代办',
|
||||
subtitle: '出入院手续代办',
|
||||
price: '198.00',
|
||||
price: '268.00',
|
||||
image: '/images/yy.jpg',
|
||||
icon: 'user-checked',
|
||||
tag: '',
|
||||
|
||||
@@ -30,6 +30,7 @@ function registerRoutes(app) {
|
||||
router.get("/hospital-info", handlerResource.getHospitalInfo.bind(handlerResource));
|
||||
router.get("/hospital-ranking", handlerResource.getHospitalRanking.bind(handlerResource));
|
||||
router.get("/department-rankings", handlerResource.getDepartmentRankings.bind(handlerResource));
|
||||
router.get("/ai-quick-questions", handlerResource.getAiQuickQuestions.bind(handlerResource));
|
||||
|
||||
app.use(router.routes());
|
||||
app.use(router.allowedMethods());
|
||||
|
||||
Reference in New Issue
Block a user