增强意图识别API,添加槽位填充状态的返回信息,更新数据模型以提供软件名称的可选值提示

This commit is contained in:
2025-06-03 14:38:28 +08:00
parent 38b6f66925
commit 74938607a7
2 changed files with 5 additions and 3 deletions
+1
View File
@@ -54,6 +54,7 @@ def intent_recognize():
"sub_classification": classification["sub_classification"],
"rewrite_query": result["rewrite"]["rewrite"],
"keywords": keywords_str,
"has_slot_filling": len(slot_filling)!=0,
"slot_filling": {
"is_complete": slot_filling.get("is_complete", False),
"missing_slots": slot_filling.get("missing_slots", {}),