Spaces:
Running
Running
Update app.py
Browse files
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 <
|
| 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 |
|