Spaces:
Sleeping
Sleeping
Update services/kb_creation.py
Browse files- services/kb_creation.py +0 -3
services/kb_creation.py
CHANGED
|
@@ -378,12 +378,10 @@ ERROR_INTENT_TERMS = [
|
|
| 378 |
"escalation", "escalation path", "access right", "mismatch", "locked", "wrong"
|
| 379 |
]
|
| 380 |
|
| 381 |
-
|
| 382 |
def _detect_user_intent(query: str) -> str:
|
| 383 |
q = (query or '').lower()
|
| 384 |
if any(k in q for k in ERROR_INTENT_TERMS):
|
| 385 |
return 'errors'
|
| 386 |
-
# Treat 'next step' style queries as steps intent (expanded)
|
| 387 |
NEXT_TERMS = (
|
| 388 |
'next step','what next','whats next','then what','following step','continue','after','proceed',
|
| 389 |
'what to do','what should i do','how to proceed','how do i continue','proceed further','next?'
|
|
@@ -398,7 +396,6 @@ def _detect_user_intent(query: str) -> str:
|
|
| 398 |
return 'purpose'
|
| 399 |
return 'neutral'
|
| 400 |
|
| 401 |
-
|
| 402 |
def _extract_actions(query: str) -> List[str]:
|
| 403 |
q = (query or "").lower()
|
| 404 |
found = []
|
|
|
|
| 378 |
"escalation", "escalation path", "access right", "mismatch", "locked", "wrong"
|
| 379 |
]
|
| 380 |
|
|
|
|
| 381 |
def _detect_user_intent(query: str) -> str:
|
| 382 |
q = (query or '').lower()
|
| 383 |
if any(k in q for k in ERROR_INTENT_TERMS):
|
| 384 |
return 'errors'
|
|
|
|
| 385 |
NEXT_TERMS = (
|
| 386 |
'next step','what next','whats next','then what','following step','continue','after','proceed',
|
| 387 |
'what to do','what should i do','how to proceed','how do i continue','proceed further','next?'
|
|
|
|
| 396 |
return 'purpose'
|
| 397 |
return 'neutral'
|
| 398 |
|
|
|
|
| 399 |
def _extract_actions(query: str) -> List[str]:
|
| 400 |
q = (query or "").lower()
|
| 401 |
found = []
|