Исправить маршрутизацию точечных drilldown-вопросов

This commit is contained in:
2026-05-24 16:27:29 +03:00
parent c998664869
commit 98bdff31dc
2 changed files with 30 additions and 3 deletions
+8 -3
View File
@@ -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",