Spaces:
Running
Running
Upload 8 files
Browse files
app.py
CHANGED
|
@@ -1389,6 +1389,10 @@ def analyze_news(news_text):
|
|
| 1389 |
print("⚠️ Failed to add to knowledge base (duplicate or error)")
|
| 1390 |
|
| 1391 |
# Step 8: Enhanced RAG System - Save to Google Drive if confidence is high enough
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1392 |
if ENABLE_ENHANCED_RAG and gemini_max_confidence > RAG_CONFIDENCE_THRESHOLD:
|
| 1393 |
try:
|
| 1394 |
from rag_news_manager import add_news_to_rag
|
|
|
|
| 1389 |
print("⚠️ Failed to add to knowledge base (duplicate or error)")
|
| 1390 |
|
| 1391 |
# Step 8: Enhanced RAG System - Save to Google Drive if confidence is high enough
|
| 1392 |
+
print(f"🔍 DEBUG: ENABLE_ENHANCED_RAG = {ENABLE_ENHANCED_RAG}")
|
| 1393 |
+
print(f"🔍 DEBUG: gemini_max_confidence = {gemini_max_confidence}")
|
| 1394 |
+
print(f"🔍 DEBUG: RAG_CONFIDENCE_THRESHOLD = {RAG_CONFIDENCE_THRESHOLD}")
|
| 1395 |
+
print(f"🔍 DEBUG: Should save? {ENABLE_ENHANCED_RAG and gemini_max_confidence > RAG_CONFIDENCE_THRESHOLD}")
|
| 1396 |
if ENABLE_ENHANCED_RAG and gemini_max_confidence > RAG_CONFIDENCE_THRESHOLD:
|
| 1397 |
try:
|
| 1398 |
from rag_news_manager import add_news_to_rag
|