fix: Improve intent node

--bug=1062028 --user=张展玮 【应用编排】意图识别节点没有带上历史聊天记录进行分类 https://www.tapd.cn/62980211/s/1776831
v3.2
zhangzhanwei 2025-09-19 17:52:58 +08:00 committed by zhanweizhang7
parent 6a0145758c
commit eb6873c329
1 changed files with 23 additions and 21 deletions

View File

@ -2,7 +2,8 @@
PROMPT_TEMPLATE = """# Role
PROMPT_TEMPLATE = """
# Role
You are an intention classification expert, good at being able to judge which classification the user's input belongs to.
## Skills
@ -12,6 +13,7 @@ PROMPT_TEMPLATE = """# Role
Note:
- Please determine the match only between the user's input content and the Intention classification list content, without judging or categorizing the match with the classification ID.
- **When classifying, you must give higher weight to the context and intent continuity shown in the historical conversation. Do not rely solely on the literal meaning of the current input; instead, prioritize the most consistent classification with the previous dialogue flow.**
## User Input
{user_input}