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: remove silent exception bugs in search strategies (#3190)

LearningCircuit2f56399afeea
diff --git a/src/local_deep_research/advanced_search_system/strategies/iterdrag_strategy.py b/src/local_deep_research/advanced_search_system/strategies/iterdrag_strategy.py
index e58454d4b3..9e80e3f715 100644
--- a/src/local_deep_research/advanced_search_system/strategies/iterdrag_strategy.py
+++ b/src/local_deep_research/advanced_search_system/strategies/iterdrag_strategy.py
@@ -261,7 +261,7 @@ Initial Search Results:
"search_results": [],
"documents": [],
}
- findings.append(finding)
+ findings.append(finding)
# Optionally update current_knowledge even if analysis failed?
# current_knowledge += f"\n\nError analyzing results for: {sub_query}"
diff --git a/src/local_deep_research/advanced_search_system/strategies/llm_driven_modular_strategy.py b/src/local_deep_research/advanced_search_system/strategies/llm_driven_modular_strategy.py
index 1b495cea1a..ee6a9f98f8 100644
--- a/src/local_deep_research/advanced_search_system/strategies/llm_driven_modular_strategy.py
+++ b/src/local_deep_research/advanced_search_system/strategies/llm_driven_modular_strategy.py
@@ -828,11 +828,4 @@ Provide a clear, factual answer that addresses the original question and explain
except Exception:
logger.exception("Error gathering evidence")
- # Fallback to mock evidence
- return [
- {
- "text": f"Evidence about {candidate.name} regarding {constraint.description}",
- "source": "mock_result",
- "confidence": 0.5,
- }
- ]
+ return []
diff --git a/src/local_deep_research/advanced_search_system/strategies/parallel_constrained_strategy.py b/src/local_deep_research/advanced_search_system/strategies/parallel_constrained_strategy.py
index 685b8c4023..91f2d7758e 100644
--- a/src/local_deep_research/advanced_search_system/strategies/parallel_constrained_strategy.py
+++ b/src/local_deep_research/advanced_search_system/strategies/parallel_constrained_strategy.py
@@ -437,7 +437,8 @@ Be strict - if there's doubt about a constraint being satisfied, reject the cand
except Exception:
logger.exception("Hard constraint validation failed")
- return candidates[:10] # Return top candidates if validation fails
+ # Don't return unvalidated candidates for hard constraints
+ return []
def _detect_entity_type(self) -> str:
"""Use LLM to detect what type of entity we're searching for."""