Skip to content

~95% on SimpleQA (e.g. Qwen3.6-27B on a 3090). Supports all local and cloud LLMs (llama.cpp, Ollama, Google, ...). 10+ search engines - arXiv, PubMed, your private documents. Everything Local & Encrypted.

Update app.py

LearningCircuit7aa2f729462d
diff --git a/app.py b/app.py
index 84ba240b10..b13796d950 100644
--- a/app.py
+++ b/app.py
@@ -956,26 +956,12 @@ def run_research_process(research_id, query, mode):
if mode == 'quick':
# Quick Summary
if results.get('findings'):
- #initial_analysis = [finding['content'] for finding in results['findings']]
- summary = ""
-
- # Safer access to formatted_findings with logging
- print(f"Results keys: {list(results.keys())}")
-
- # Check if formatted_findings exists in results
- if 'formatted_findings' not in results:
- print("WARNING: 'formatted_findings' not found in results, using fallback")
- # Create fallback formatted findings from available data
- raw_formatted_findings = "# Research Findings\n\n"
- for i, finding in enumerate(results.get('findings', [])):
- raw_formatted_findings += f"## Finding {i+1}\n\n{finding.get('content', '')}\n\n"
- else:
- raw_formatted_findings = results['formatted_findings']
- print(f"Found formatted_findings of length: {len(str(raw_formatted_findings))}")
+
+ raw_formatted_findings = results['formatted_findings']
+ logger.info(f"Found formatted_findings of length: {len(str(raw_formatted_findings))}")
try:
- # ADDED CODE: Convert debug output to clean markdown
- clean_markdown = convert_debug_to_markdown(raw_formatted_findings, query)
+ clean_markdown = raw_formatted_findings
print(f"Successfully converted to clean markdown of length: {len(clean_markdown)}")
# First send a progress update for generating the summary