refactor: 品牌统一为「南方财富」(项目方定)
背景:品牌名此前三处不一致 —— 后端 Agent 自称「奶龙基金」(customer_service_rules
的防诈骗/转人工话术、risk_agent 与 risk_analysis_service 的系统提示词)、前端全站
「南方财富」、闲聊提示词与知识素材「南方科技」。docs/36 已把它登记为"上报项目方后
待定",现按项目方决定统一为「南方财富」。
改动:
- app/core/customer_service_rules.py:P0 防诈骗话术与 P2 转人工话术里的品牌名
- app/service/agent/implementations/customer_service.py:COMPANY 常量,
以及那处引用实测样本的注释(改为不绑定具体品牌名,免得下次改名又过时)
- app/service/agent/implementations/risk_agent.py:docstring、自我介绍、system prompt
- app/service/risk_analysis_service.py:SYSTEM_PROMPT
- app/worker/risk_scan_scheduler.py:--help 描述
- app/static/index.html(旧联调页 4 处)、portal/employee-risk/dashboard/index.html
- tests/unit/api/test_customer_service_test_page.py:同步断言(它断言的正是页面里的品牌名)
- tools/publish_chitchat_prompt.py:SYSTEM_PROMPT 改品牌;并修掉"存在即跳过"的检查
—— 原来只判当前版本有没有这一行,于是改了文案也发不出去(脚本打印"无需发布"直接
退出),没有任何提示。改为比对 system_prompt/user_prompt_template 内容。
闲聊提示词已重发为 release 308 / v5,生效内容为"你是南方财富的智能客服助手…"。
刻意未动:
- fin_product.fund_manager = "南方基金" —— 它被 market_quote_sync_service 与
product_history_sync_service 当过滤条件使用,改名会让同步链路查不到产品
- knowledge_search_service.py 注释里引用的知识库实际标题「南方科技有限公司…」
- docs/客服docs 下的历史素材与 docs/ 下的过程记录(属历史留痕)
⚠️ Milvus 里的知识条目仍写「奶龙基金」(RAG-*/NF-*)与「南方科技」(PROD-*),
属知识数据,需重灌才能统一;本轮不动。
同时:
- docs/40 把品牌条目标为已处理,并补上知识库缺口的现状
- 新增 docs/42-场内基金知识条目草稿.md:按 fin_product 的 20 只产品生成,
含通用交易规则与产品清单;费率等缺失字段一律标"以交易页面为准",未编造数字。
**该文件是草稿,未入库**,待审核后走 POST /api/v1/knowledge/documents 灌库。
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>奶龙基金智能助手联调</title>
|
||||
<title>南方财富智能助手联调</title>
|
||||
<style>
|
||||
:root { --ink: #17212b; --muted: #607080; --line: #d9e1e7; --canvas: #f4f7f8; --surface: #ffffff; --brand: #008a7a; --brand-dark: #00695f; --accent: #e96f45; --visitor: #e8f6f1; --agent: #f2f5f7; --danger: #b43b2c; }
|
||||
* { box-sizing: border-box; }
|
||||
@@ -40,7 +40,7 @@
|
||||
<header>
|
||||
<div class="brand">
|
||||
<div class="brand-mark" aria-hidden="true">龙</div>
|
||||
<div><h1>奶龙基金智能助手</h1><p class="status">公开知识与客服分流联调页</p></div>
|
||||
<div><h1>南方财富智能助手</h1><p class="status">公开知识与客服分流联调页</p></div>
|
||||
</div>
|
||||
<p id="connection-status" class="status"><span class="role">访客</span>:正在建立测试连接</p>
|
||||
</header>
|
||||
@@ -122,7 +122,7 @@
|
||||
appendMessage("user", normalized);
|
||||
input.value = "";
|
||||
sendButton.disabled = true;
|
||||
const pending = appendMessage("agent", "奶龙基金智能助手正在处理您的问题…", "pending");
|
||||
const pending = appendMessage("agent", "南方财富智能助手正在处理您的问题…", "pending");
|
||||
try {
|
||||
await ensureVisitorToken();
|
||||
const response = await fetch("/api/v1/agent-runs", {
|
||||
@@ -148,7 +148,7 @@
|
||||
document.querySelectorAll(".sample").forEach((button) => {
|
||||
button.addEventListener("click", () => void sendMessage(button.dataset.message || ""));
|
||||
});
|
||||
appendMessage("agent", "您好呀,我是奶龙基金智能助手。这里可测试公开问题、账户入口、安全提示和人工服务路径。");
|
||||
appendMessage("agent", "您好呀,我是南方财富智能助手。这里可测试公开问题、账户入口、安全提示和人工服务路径。");
|
||||
void ensureVisitorToken().catch(() => { connectionStatus.textContent = "访客:连接未建立,发送消息时将自动重试"; });
|
||||
</script>
|
||||
</body>
|
||||
|
||||
Reference in New Issue
Block a user