优化奶龙字段语义理解
This commit is contained in:
@@ -362,7 +362,8 @@ def _agent_system_prompt(message: str) -> str:
|
||||
"8. 查询结果包含 summary 时,客户、产品和规则数量必须依据完整 summary,"
|
||||
"不能因为 items 被截断就回答只覆盖部分记录。\n"
|
||||
"9. 最终回答使用中文,简洁说明结论、依据和剩余风险,并提醒由风控专员人工复核。\n"
|
||||
f"{context}\n{filter_context}\n{_truncation_instruction()}"
|
||||
f"{context}\n{filter_context}\n{_truncation_instruction()}\n"
|
||||
f"{_field_meaning_instruction()}"
|
||||
)
|
||||
|
||||
|
||||
@@ -374,6 +375,14 @@ def _truncation_instruction() -> str:
|
||||
)
|
||||
|
||||
|
||||
def _field_meaning_instruction() -> str:
|
||||
return (
|
||||
"11. 工具结果中的 field_meanings 是字段中文含义词典。面向用户回答时必须使用"
|
||||
"这些业务含义组织内容,不要直接罗列 customer_no、ack_status、behavior_score "
|
||||
"等数据库字段名;只有用户明确要求查看原始字段时才保留字段名。"
|
||||
)
|
||||
|
||||
|
||||
def _is_disposition_query(message: str) -> bool:
|
||||
return any(keyword in message for keyword in (
|
||||
"误报",
|
||||
|
||||
Reference in New Issue
Block a user