~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
Fix missing _get_specific_error_explanation method
LearningCircuitac1fd2d20ebc
diff --git a/src/local_deep_research/error_handling/llm_explainer.py b/src/local_deep_research/error_handling/llm_explainer.pyindex bbac54a369..73d47587ff 100644--- a/src/local_deep_research/error_handling/llm_explainer.py+++ b/src/local_deep_research/error_handling/llm_explainer.py@@ -181,4 +181,72 @@ Keep it concise, helpful, and friendly. Avoid technical jargon.ErrorCategory.FILE_ERROR: "💡 **Quick Fix:** Check available disk space and file permissions",ErrorCategory.UNKNOWN_ERROR: "💡 **Next Step:** Check the detailed logs below for more information",}- return tips.get(category, "💡 **Tip:** Try running the research again or check the logs for details")\ No newline at end of file+ return tips.get(category, "💡 **Tip:** Try running the research again or check the logs for details")++ def _get_specific_error_explanation(self, error_message: str) -> Optional[str]:+ """+ Get specific explanations for known exact error patterns (Priority 1)++ Args:+ error_message: The error message to check++ Returns:+ str: Specific explanation if pattern matches, None otherwise+ """+ error_lower = error_message.lower()++ # Ollama port switching issue (our current debugging case)+ if "post predict" in error_lower and "eof" in error_lower and "127.0.0.1:" in error_message:+ return """+ **Ollama Port Switching Issue Detected**++ Your Ollama service appears to be switching to random ports during operation. This is a known issue where langchain-ollama+ changes from the configured localhost:11434 to random ports like 127.0.0.1:39841, causing connection failures.++ **Quick fixes to try:**+ - Restart your Ollama service: `ollama serve`+ - Restart the LDR application+ - Check if multiple Ollama instances are running+ - Try switching to a different model provider temporarily+ """.strip()++ # API key issues+ if "api key" in error_lower and ("invalid" in error_lower or "unauthorized" in error_lower):+ return """+ **API Key Problem**++ Your API key appears to be invalid or missing. This prevents the system from connecting to your AI service.++ **How to fix:**+ - Check your API key in the settings+ - Verify the key hasn't expired+ - Make sure you've entered it correctly (no extra spaces)+ """.strip()++ # Model not found+ if "model" in error_lower and ("not found" in error_lower or "does not exist" in error_lower):+ return """+ **Model Not Available**++ The AI model you selected isn't available on your system.++ **How to fix:**+ - Download the model: `ollama pull [model-name]`+ - Check available models: `ollama list`+ - Try switching to a different model in settings+ """.strip()++ # Connection refused / service not running+ if "connection refused" in error_lower or "service unavailable" in error_lower:+ return """+ **AI Service Not Running**++ The AI service (like Ollama or LM Studio) isn't running or isn't accessible.++ **How to fix:**+ - Start Ollama: `ollama serve`+ - Check if LM Studio is running+ - Verify the service URL in settings+ """.strip()++ return None\ No newline at end of file