Исправить маршрутизацию точечных drilldown-вопросов
This commit is contained in:
@@ -87,6 +87,10 @@ def classify_query_for_route(
|
||||
"chain",
|
||||
"why",
|
||||
"subconto3",
|
||||
"проводк",
|
||||
"источник регистра",
|
||||
"строк",
|
||||
"субконто",
|
||||
"supplier",
|
||||
"поставщик",
|
||||
"buyer",
|
||||
@@ -132,9 +136,10 @@ def classify_query_for_route(
|
||||
ranking_markers = ["рейтинг", "ranking", "топ", "top"]
|
||||
anomaly_markers = ["аномал", "summary", "срез", "risk-slice", "риск-срез"]
|
||||
|
||||
needs_exact_object_trace = _contains_any(text, exact_markers) and (
|
||||
question_class in {"drilldown_explain", "simple_factual", "cross_entity"}
|
||||
)
|
||||
has_exact_marker = _contains_any(text, exact_markers)
|
||||
needs_exact_object_trace = has_exact_marker and question_class in {"drilldown_explain", "simple_factual"}
|
||||
if question_class == "cross_entity" and has_exact_marker and ("->" in text or "цепочка:" in text):
|
||||
needs_exact_object_trace = True
|
||||
if _contains_any(text, inventory_markers) and question_class in {
|
||||
"drilldown_explain",
|
||||
"simple_factual",
|
||||
|
||||
Reference in New Issue
Block a user