feat:修复投顾agent功能
This commit is contained in:
@@ -108,6 +108,17 @@ async def classify_advisor_intent(
|
||||
"rule",
|
||||
"识别为系统提示文本而非业务查询",
|
||||
)
|
||||
fast_intent = recognize_advisor_intent(query)
|
||||
if (
|
||||
fast_intent == AGENT_INTENT_DATA_QUERY
|
||||
and not any(term in query for term in _RECOMMENDATION_TERMS)
|
||||
):
|
||||
return IntentClassification(
|
||||
fast_intent,
|
||||
0.95,
|
||||
"rule_fast",
|
||||
"明显查询类问题",
|
||||
)
|
||||
if llm_client is not None:
|
||||
try:
|
||||
raw = await asyncio.wait_for(
|
||||
|
||||
Reference in New Issue
Block a user