优化对话转工单功能,添加重试机制以提高稳定性,限制处理会话数量为前2000个,更新示例查询和文件路径,增强代码可读性和维护性。同时新增数据库客户端功能,支持批量处理会话数据并导出至Excel。

This commit is contained in:
2025-06-17 19:46:04 +08:00
parent a5c1548240
commit 22d48c951f
10 changed files with 718 additions and 96 deletions
@@ -58,6 +58,12 @@ classification_prompt="""
用户正在使用电力造价软件或想询问电力造价领域相关知识,你需要根据用户的输入内容,将其归类为以下垂直领域之一:
{classification_info}
## 【会话背景信息】
{conversation_context}
## 【历史对话记录】
{chat_history}
【用户输入】:
{user_input}
@@ -154,6 +160,15 @@ slot_filling_prompt = """
【用户问题】
{query}
## 【会话背景信息】
{conversation_context}
## 【历史对话记录】
{chat_history}
## 【历史槽位信息】
{previous_slots}
【问题分类】
垂直领域分类: {vertical_classification}
子分类: {sub_classification}