家居大模型联调,大模型生成智能待办

This commit is contained in:
ZLI263
2025-11-22 17:53:18 +08:00
parent 36035d820b
commit 23fe2e70b1
10 changed files with 874 additions and 9 deletions

View File

@@ -0,0 +1,23 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.rj.mapper.TodoItemMapper">
<!-- 通用查询映射结果 -->
<resultMap id="BaseResultMap" type="com.rj.entity.TodoItem">
<id column="id" property="id" />
<result column="parent_id" property="parentId" />
<result column="status" property="status" />
<result column="todo_title" property="todoTitle" />
<result column="todo_detail" property="todoDetail" />
<result column="owner_name" property="ownerName" />
<result column="owner_phone" property="ownerPhone" />
<result column="create_time" property="createTime" />
<result column="update_time" property="updateTime" />
</resultMap>
<!-- 通用查询结果列 -->
<sql id="Base_Column_List">
id, parent_id, status, todo_title, todo_detail, owner_name, owner_phone, create_time, update_time
</sql>
</mapper>

View File

@@ -0,0 +1 @@
你是一个专业的家居销售顾问助手需要从录音文本中抽取结构化信息并输出JSON。必须严格按照要求输出JSON不能包含额外文字。

View File

@@ -0,0 +1,189 @@
请阅读以下录音文本,从中提取客户信息并生成 JSON。必须覆盖所有字段缺失信息请基于语境合理推断或标注"暂无信息"。
字段要求:
1. customer_type客户类型仅可填「新房装修」「二次翻修」「补充家居」。
2. family_structure家庭结构描述家庭几口人、几个孩子、几个老人重点反应家庭成员。
3. intention_products意向产品清单比如床、柜子、沙发等仅限家居不能扩展到其它产品用顿号或逗号分隔。
4. summary一句话总结应该简洁明了地概括客户的需求和关键信息重点关注客户预算如果未提及默认预算3万关注的还有产品信息等关键信息。
5. decoration_style装修风格总结偏好的装修/家居风格,风格类型,并推测主人相关信息。
6. sofa沙发需求或配置说明大小、风格、数量、种类等相关信息。
7. tea_table茶几/茶桌需求或配置,材质、风格。
8. dining_table餐桌椅需求或配置。
9. study_desk学习桌/书桌需求。
10. tv_cabinet电视柜需求说明。
11. cabinet橱柜或厨房柜体说明。
12. wine_cabinet酒柜需求说明。
13. master_bedroom_cabinet主卧衣柜/储物柜配置。
14. secondary_bedroom_cabinet次卧衣柜/储物柜配置。
15. shoe_cabinet鞋柜需求或配置。
16. bed_and_mattress床及床垫配置。
17.todo_item: 待办事项,通过分析对话内容,把所有待办的事, 都放到这个字段属性里 。
重要每个产品维度sofa、tea_table、dining_table、study_desk、tv_cabinet、cabinet、wine_cabinet、master_bedroom_cabinet、secondary_bedroom_cabinet、shoe_cabinet、bed_and_mattress必须是一个JSON对象包含以下10个维度
1. preferenceStyleAndColor偏好风格与颜色
2. materialPreference材质偏好
3. customerFocusAreas客户重点关注
4. priceSensitivity价格敏感度
5. activityParticipation活动参与度
6. customerConcerns客户疑虑点
7. deliveryService交付服务
8. competitorFeedback竞品反馈
9. deliveryCycle交付周期
10. productAppearance产品颜值
严格输出 JSON 格式,示例:
{
"customer_type": "二次翻修",
"family_structure": "三口之家,一个小男孩",
"intention_products": "床、沙发、酒柜、厨房柜子",
"summary": "客户是二次翻修对价格比较敏感预算在10万以内",
"decoration_style": "总结偏好的装修/家居风格,风格类型,并推测主人相关信息",
"sofa": {
"preferenceStyleAndColor": "偏好风格与颜色",
"materialPreference": "材质偏好",
"customerFocusAreas": "客户重点关注",
"priceSensitivity": "价格敏感度",
"activityParticipation": "活动参与度",
"customerConcerns": "客户疑虑点",
"deliveryService": "交付服务",
"competitorFeedback": "竞品反馈",
"deliveryCycle": "交付周期",
"productAppearance": "产品颜值"
},
"tea_table": {
"preferenceStyleAndColor": "偏好风格与颜色",
"materialPreference": "材质偏好",
"customerFocusAreas": "客户重点关注",
"priceSensitivity": "价格敏感度",
"activityParticipation": "活动参与度",
"customerConcerns": "客户疑虑点",
"deliveryService": "交付服务",
"competitorFeedback": "竞品反馈",
"deliveryCycle": "交付周期",
"productAppearance": "产品颜值"
},
"dining_table": {
"preferenceStyleAndColor": "偏好风格与颜色",
"materialPreference": "材质偏好",
"customerFocusAreas": "客户重点关注",
"priceSensitivity": "价格敏感度",
"activityParticipation": "活动参与度",
"customerConcerns": "客户疑虑点",
"deliveryService": "交付服务",
"competitorFeedback": "竞品反馈",
"deliveryCycle": "交付周期",
"productAppearance": "产品颜值"
},
"study_desk": {
"preferenceStyleAndColor": "偏好风格与颜色",
"materialPreference": "材质偏好",
"customerFocusAreas": "客户重点关注",
"priceSensitivity": "价格敏感度",
"activityParticipation": "活动参与度",
"customerConcerns": "客户疑虑点",
"deliveryService": "交付服务",
"competitorFeedback": "竞品反馈",
"deliveryCycle": "交付周期",
"productAppearance": "产品颜值"
},
"tv_cabinet": {
"preferenceStyleAndColor": "偏好风格与颜色",
"materialPreference": "材质偏好",
"customerFocusAreas": "客户重点关注",
"priceSensitivity": "价格敏感度",
"activityParticipation": "活动参与度",
"customerConcerns": "客户疑虑点",
"deliveryService": "交付服务",
"competitorFeedback": "竞品反馈",
"deliveryCycle": "交付周期",
"productAppearance": "产品颜值"
},
"cabinet": {
"preferenceStyleAndColor": "偏好风格与颜色",
"materialPreference": "材质偏好",
"customerFocusAreas": "客户重点关注",
"priceSensitivity": "价格敏感度",
"activityParticipation": "活动参与度",
"customerConcerns": "客户疑虑点",
"deliveryService": "交付服务",
"competitorFeedback": "竞品反馈",
"deliveryCycle": "交付周期",
"productAppearance": "产品颜值"
},
"wine_cabinet": {
"preferenceStyleAndColor": "偏好风格与颜色",
"materialPreference": "材质偏好",
"customerFocusAreas": "客户重点关注",
"priceSensitivity": "价格敏感度",
"activityParticipation": "活动参与度",
"customerConcerns": "客户疑虑点",
"deliveryService": "交付服务",
"competitorFeedback": "竞品反馈",
"deliveryCycle": "交付周期",
"productAppearance": "产品颜值"
},
"master_bedroom_cabinet": {
"preferenceStyleAndColor": "偏好风格与颜色",
"materialPreference": "材质偏好",
"customerFocusAreas": "客户重点关注",
"priceSensitivity": "价格敏感度",
"activityParticipation": "活动参与度",
"customerConcerns": "客户疑虑点",
"deliveryService": "交付服务",
"competitorFeedback": "竞品反馈",
"deliveryCycle": "交付周期",
"productAppearance": "产品颜值"
},
"secondary_bedroom_cabinet": {
"preferenceStyleAndColor": "偏好风格与颜色",
"materialPreference": "材质偏好",
"customerFocusAreas": "客户重点关注",
"priceSensitivity": "价格敏感度",
"activityParticipation": "活动参与度",
"customerConcerns": "客户疑虑点",
"deliveryService": "交付服务",
"competitorFeedback": "竞品反馈",
"deliveryCycle": "交付周期",
"productAppearance": "产品颜值"
},
"shoe_cabinet": {
"preferenceStyleAndColor": "偏好风格与颜色",
"materialPreference": "材质偏好",
"customerFocusAreas": "客户重点关注",
"priceSensitivity": "价格敏感度",
"activityParticipation": "活动参与度",
"customerConcerns": "客户疑虑点",
"deliveryService": "交付服务",
"competitorFeedback": "竞品反馈",
"deliveryCycle": "交付周期",
"productAppearance": "产品颜值"
},
"bed_and_mattress": {
"preferenceStyleAndColor": "偏好风格与颜色",
"materialPreference": "材质偏好",
"customerFocusAreas": "客户重点关注",
"priceSensitivity": "价格敏感度",
"activityParticipation": "活动参与度",
"customerConcerns": "客户疑虑点",
"deliveryService": "交付服务",
"competitorFeedback": "竞品反馈",
"deliveryCycle": "交付周期",
"productAppearance": "产品颜值"
},
"todo_item":[{
"todo_detail": "待办事项详细说明" ,
"todo_title":"待办概要"
},{
"todo_detail": "待办事项详细说明" ,
"todo_title":"待办概要"
}]
}
注意:
1. 必须严格按照JSON格式输出不要添加任何额外文字或markdown代码块标记。
2. 每个产品维度必须是一个完整的JSON对象包含上述10个维度。
3. 如果录音文本中未提及某个产品该产品的JSON对象中所有维度应填写"暂无信息"或基于语境合理推断。
4. 所有字段值必须基于录音文本内容,合理推断,不能随意编造。
录音文本:
{RECORDING_TEXT}