~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.
Python academiaanthropicarxivbravedeep-researchencryptionhome-automationhomeserverlocallocal-deep-researchlocal-llmmistralollamaopenaipubmedresearchresearch-toolretrieval-augmented-generationsearxngself-hosted
merge: resolve conflicts with dev branch
LearningCircuit17b6b3901dac
diff --cc src/local_deep_research/advanced_search_system/strategies/focused_iteration_strategy.pyindex b77332aacd,573c3a04b1..32048cf9e5--- a/src/local_deep_research/advanced_search_system/strategies/focused_iteration_strategy.py+++ b/src/local_deep_research/advanced_search_system/strategies/focused_iteration_strategy.py@@@ -191,6 -187,24 +191,13 @@@ class FocusedIterationStrategy(BaseSearself.questions_by_iteration[iteration] = questionslogger.info(f"Iteration {iteration} questions: {questions}")+ # Skip search phase if no questions were generated+ if not questions:+ logger.warning(+ f"No questions generated for iteration {iteration}, skipping search phase"+ )+ continue+- # Report starting searches for this iteration- self._update_progress(- f"Executing {len(questions)} searches in iteration {iteration}",- iteration_progress - (80 / self.max_iterations / 4),- {- "phase": f"iteration_{iteration}_searching",- "queries": questions[:3], # Show first 3 queries- "total_queries": len(questions),- },- )-# Execute searchesif self.explorer and self.use_browsecomp_optimization:# Use progressive explorer for better trackingdiff --cc src/local_deep_research/advanced_search_system/strategies/source_based_strategy.pyindex ad62bc9b87,a92bbf468c..209d67c327--- a/src/local_deep_research/advanced_search_system/strategies/source_based_strategy.py+++ b/src/local_deep_research/advanced_search_system/strategies/source_based_strategy.py@@@ -258,7 -260,20 +258,14 @@@ class SourceBasedSearchStrategy(BaseSeaf"Generated questions for iteration {iteration}: {questions}")+ # Skip if no questions (all_questions may include original query in iteration 1)+ if not all_questions:+ logger.warning(+ f"No questions generated for iteration {iteration}, skipping search phase"+ )+ continue+# Step 2: Run all searches in parallel for this iteration- self._update_progress(- f"Running parallel searches for iteration {iteration}",- iteration_progress_base + 10,- {"phase": "parallel_search", "iteration": iteration},- )-# Function for thread pool@thread_with_app_context@preserve_research_contextdiff --cc src/local_deep_research/config/thread_settings.pyindex fc974ff45a,03506ca5fa..25ab8e545a--- a/src/local_deep_research/config/thread_settings.py+++ b/src/local_deep_research/config/thread_settings.py@@@ -57,19 -57,15 +57,15 @@@ def get_setting_from_snapshot# First check if we have settings_snapshot passed directlyvalue = Noneif settings_snapshot and key in settings_snapshot:- raw_value = settings_snapshot[key]- # Handle both formats:- # 1. Full dict format: {"value": ..., "ui_element": ...}- # 2. Simplified format: just the value (from get_settings_snapshot())- if isinstance(raw_value, dict) and "value" in raw_value:+ value = settings_snapshot[key]+ # Handle both full format {"value": x} and simplified format (just x)+ if isinstance(value, dict) and "value" in value:value = get_typed_setting_value(key,- raw_value["value"],- raw_value.get("ui_element", "text"),+ value["value"],- value.get("ui_element", "text"), # Default to "text" if missing++ value.get("ui_element", "text"),)- else:- # Simplified format - value is already the raw value- value = get_typed_setting_value(key, raw_value, "text")+ # else: value is already the raw value from simplified snapshot# Search for child keys.elif settings_snapshot:for k, v in settings_snapshot.items():@@@ -79,9 -75,8 +75,8 @@@if isinstance(v, dict) and "value" in v:v = get_typed_setting_value(key, v["value"], v.get("ui_element", "text")- ) # Default to "text" if missing+ )- else:- v = get_typed_setting_value(key, v, "text")+ # else: v is already the raw value from simplified snapshotif value is None:value = {k: v}else: