bat-6 commited on
Commit
63df0e6
·
1 Parent(s): 60cb4b3

feat: implement chatbot engine for project validation, classification, and session management

Browse files
src/recommendation_engine/chatbot_engine.py CHANGED
@@ -532,7 +532,7 @@ def chatbot(user_id: str, user_input: str):
532
  else:
533
  state["domain"] = domain
534
  state["waiting_for_domain"] = False
535
- elif user_input.lower().strip() == "idea":
536
  state["domain"] = None
537
 
538
  if not state.get("domain"):
 
532
  else:
533
  state["domain"] = domain
534
  state["waiting_for_domain"] = False
535
+ elif not any(w in user_input.lower() for w in FOLLOWUP_WORDS):
536
  state["domain"] = None
537
 
538
  if not state.get("domain"):