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.

fix: small progress reporting fixes

hashedviking7e95d0af8c0f
diff --git a/search_system.py b/search_system.py
index 42a1124977..624c8b8cbd 100644
--- a/search_system.py
+++ b/search_system.py
@@ -97,7 +97,7 @@ class AdvancedSearchSystem:
current_knowledge = ""
iteration = 0
total_iterations = self.max_iterations
- section_links =list()
+ section_links = list()
self._update_progress("Initializing research system", 5, {
"phase": "init",
@@ -123,10 +123,13 @@ class AdvancedSearchSystem:
{"phase": "search", "iteration": iteration + 1, "question_index": q_idx + 1})
search_results = self.search.run(question)
-
-
-
-
+
+ if search_results is None:
+ self._update_progress(f"No search results found for question: {question}",
+ int(question_progress_base + 2),
+ {"phase": "search_complete", "result_count": 0})
+ search_results = [] # Initialize to empty list instead of None
+ continue
self._update_progress(f"Found {len(search_results)} results for question: {question}",
int(question_progress_base + 2),
@@ -137,8 +140,6 @@ class AdvancedSearchSystem:
if len(search_results) == 0:
continue
-
-
self._update_progress(f"Analyzing results for: {question}",
int(question_progress_base + 5),
{"phase": "analysis"})
@@ -164,21 +165,19 @@ class AdvancedSearchSystem:
}
)
-
-
- if config.KNOWLEDGE_ACCUMULATION != KnowledgeAccumulationApproach.NO_KNOWLEDGE:
- current_knowledge = current_knowledge + "\n\n\n New: \n" + results_with_links
-
- print(current_knowledge)
- if config.KNOWLEDGE_ACCUMULATION == KnowledgeAccumulationApproach.QUESTION:
- self._update_progress(f"Compress Knowledge for: {question}",
- int(question_progress_base + 0),
- {"phase": "analysis"})
- current_knowledge = self._compress_knowledge(current_knowledge , query, section_links)
-
- self._update_progress(f"Analysis complete for question: {question}",
- int(question_progress_base + 10),
- {"phase": "analysis_complete"})
+ if config.KNOWLEDGE_ACCUMULATION != KnowledgeAccumulationApproach.NO_KNOWLEDGE:
+ current_knowledge = current_knowledge + "\n\n\n New: \n" + results_with_links
+
+ print(current_knowledge)
+ if config.KNOWLEDGE_ACCUMULATION == KnowledgeAccumulationApproach.QUESTION:
+ self._update_progress(f"Compress Knowledge for: {question}",
+ int(question_progress_base + 0),
+ {"phase": "analysis"})
+ current_knowledge = self._compress_knowledge(current_knowledge , query, section_links)
+
+ self._update_progress(f"Analysis complete for question: {question}",
+ int(question_progress_base + 10),
+ {"phase": "analysis_complete"})
iteration += 1