~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
better visibility of errors
LearningCircuitbfb7ec540787
diff --git a/src/local_deep_research/advanced_search_system/strategies/parallel_search_strategy.py b/src/local_deep_research/advanced_search_system/strategies/parallel_search_strategy.pyindex abb5da26ed..a0c64bfe93 100644--- a/src/local_deep_research/advanced_search_system/strategies/parallel_search_strategy.py+++ b/src/local_deep_research/advanced_search_system/strategies/parallel_search_strategy.py@@ -184,8 +184,11 @@ class ParallelSearchStrategy(BaseSearchStrategy):findings.append(finding)except Exception as e:+ import traceback+error_msg = f"Error in research process: {str(e)}"logger.error(error_msg)+ logger.error(traceback.format_exc())synthesized_content = f"Error: {str(e)}"formatted_findings = f"Error: {str(e)}"finding = {diff --git a/src/local_deep_research/citation_handler.py b/src/local_deep_research/citation_handler.pyindex e907bc43ea..446c624895 100644--- a/src/local_deep_research/citation_handler.py+++ b/src/local_deep_research/citation_handler.py@@ -5,7 +5,6 @@ from typing import Any, Dict, List, Unionfrom langchain_core.documents import Documentfrom .config.config_files import settings-from .utilties.search_utilities import remove_think_tagsclass CitationHandler:@@ -66,8 +65,9 @@ Provide a detailed analysis with citations and always keep URLS. Never make up s"""response = self.llm.invoke(prompt)-- return {"content": remove_think_tags(response.content), "documents": documents}+ if not isinstance(response, str):+ response = response.content+ return {"content": response, "documents": documents}def analyze_followup(self,@@ -94,9 +94,8 @@ Provide a detailed analysis with citations and always keep URLS. Never make up sReturn any inconsistencies or conflicts found."""if settings.GENERAL.ENABLE_FACT_CHECKING:- fact_check_response = remove_think_tags(- self.llm.invoke(fact_check_prompt).content- )+ fact_check_response = self.llm.invoke(fact_check_prompt).content+else:fact_check_response = ""@@ -115,4 +114,4 @@ Provide a detailed analysis with citations and always keep URLS. Never make up sresponse = self.llm.invoke(prompt)- return {"content": remove_think_tags(response.content), "documents": documents}+ return {"content": response.content, "documents": documents}diff --git a/src/local_deep_research/web/services/research_service.py b/src/local_deep_research/web/services/research_service.pyindex 2927a308b5..bad15cb88b 100644--- a/src/local_deep_research/web/services/research_service.py+++ b/src/local_deep_research/web/services/research_service.py@@ -424,8 +424,10 @@ def run_research_process(if isinstance(raw_formatted_findings, str) and raw_formatted_findings.startswith("Error:"):+ import traceback+logger.warning(- f"Detected error in formatted findings: {raw_formatted_findings[:100]}..."+ f"Detected error in formatted findings: {raw_formatted_findings[:100]}... stack trace: {traceback.format_exc()}")# Determine error type for better user feedback@@ -501,6 +503,7 @@ def run_research_process(if synthesized_content and not synthesized_content.startswith("Error:"):+logger.info("Using existing synthesized content as fallback")raw_formatted_findings = synthesized_content