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.

Disable LLM explanations for now

LearningCircuit25d208c2a35f
diff --git a/src/local_deep_research/error_handling/llm_explainer.py b/src/local_deep_research/error_handling/llm_explainer.py
index 73d47587ff..78f6c6468e 100644
--- a/src/local_deep_research/error_handling/llm_explainer.py
+++ b/src/local_deep_research/error_handling/llm_explainer.py
@@ -78,16 +78,7 @@ class LLMExplainer:
if specific_explanation:
return specific_explanation
- # Priority 2: Try LLM for unknown/complex errors
- if self.llm:
- try:
- llm_explanation = self._generate_llm_explanation(category, original_error, context)
- if llm_explanation:
- return llm_explanation
- except Exception as e:
- logger.warning(f"Failed to generate LLM explanation: {e}")
-
- # Priority 3: Simple fallback
+ # Priority 2: Simple fallback (LLM explanation disabled for now)
return "An unexpected error occurred during your research. Check the technical details below for more information."
def _generate_llm_explanation(self, category: ErrorCategory, error_message: str, context: Dict[str, Any]) -> Optional[str]:
@@ -249,4 +240,18 @@ Keep it concise, helpful, and friendly. Avoid technical jargon.
- Verify the service URL in settings
""".strip()
+ # ThreadPoolExecutor max_workers issue
+ if "max_workers must be greater than 0" in error_message:
+ return """
+ **Threading Configuration Error**
+
+ The system tried to create a thread pool with zero workers, which isn't allowed.
+ This typically happens when there are no search questions to process.
+
+ **Quick fix:**
+ - Try running the research again
+ - Check your search configuration settings
+ - This is usually a temporary issue
+ """.strip()
+
return None
\ No newline at end of file