cosmosai471 commited on
Commit
b27fc81
·
verified ·
1 Parent(s): 9348229

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -137,7 +137,7 @@ def check_confidence_and_augment(raw_response_with_tags: str, prompt: str) -> st
137
  cleaned_response = clean_response_stream(raw_response_with_tags)
138
 
139
  # 3. Check if confidence is below threshold
140
- if confidence_score < 70:
141
  print(f"Low confidence ({confidence_score}%) detected. Triggering Google Search fallback.")
142
  search_snippet = web_search_tool(prompt)
143
 
 
137
  cleaned_response = clean_response_stream(raw_response_with_tags)
138
 
139
  # 3. Check if confidence is below threshold
140
+ if confidence_score < 33:
141
  print(f"Low confidence ({confidence_score}%) detected. Triggering Google Search fallback.")
142
  search_snippet = web_search_tool(prompt)
143