selim-ba commited on
Commit
cb89938
·
verified ·
1 Parent(s): 211719b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -170,7 +170,7 @@ class SuperSmartAgent:
170
  def check_wikipedia_suitability(state):
171
  q = state["question"].lower()
172
  # Simple heuristic: if it's a "who is", "what is", or named entity
173
- triggers = ["who is", "what is", "when did", "where is", "tell me about", "How many"]
174
  state["is_wiki"] = any(trigger in q for trigger in triggers)
175
  print(f"is_wiki: {state['is_wiki']}")
176
  return state
 
170
  def check_wikipedia_suitability(state):
171
  q = state["question"].lower()
172
  # Simple heuristic: if it's a "who is", "what is", or named entity
173
+ triggers = ["wikipedia","Wikipedia","who is", "what is", "when did", "where is", "tell me about", "How many"]
174
  state["is_wiki"] = any(trigger in q for trigger in triggers)
175
  print(f"is_wiki: {state['is_wiki']}")
176
  return state