~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
improvments
LearningCircuit578f02002f6f
diff --git a/src/local_deep_research/report_generator.py b/src/local_deep_research/report_generator.pyindex 8399034ce4..b0f818ceb3 100644--- a/src/local_deep_research/report_generator.py+++ b/src/local_deep_research/report_generator.py@@ -9,10 +9,20 @@ from .search_system import AdvancedSearchSystemfrom .utilties import search_utilities+def get_report_generator(search_system=None):+ """Return an instance of the report generator with default settings.++ Args:+ search_system: Optional existing AdvancedSearchSystem to use+ """+ return IntegratedReportGenerator(search_system=search_system)++class IntegratedReportGenerator:- def __init__(self, searches_per_section: int = 2):+ def __init__(self, searches_per_section: int = 2, search_system=None):self.model = get_llm()- self.search_system = AdvancedSearchSystem()+ # Use provided search_system or create a new one+ self.search_system = search_system or AdvancedSearchSystem()self.searches_per_section = (searches_per_section # Control search depth per section)@@ -191,8 +201,8 @@ class IntegratedReportGenerator:# Format links from search system# Get utilties module dynamically to avoid circular importsutilties = importlib.import_module("local_deep_research.utilties")- formatted_all_links = utilties.search_utilities.format_links(- links=self.search_system.all_links_of_system+ formatted_all_links = utilties.search_utilities.format_links_to_markdown(+ all_links=self.search_system.all_links_of_system)# Create final report with all partsdiff --git a/src/local_deep_research/search_system.py b/src/local_deep_research/search_system.pyindex b5bcc36045..0baa0ca541 100644--- a/src/local_deep_research/search_system.py+++ b/src/local_deep_research/search_system.py@@ -12,7 +12,7 @@ logger = logging.getLogger(__name__)class AdvancedSearchSystem:- def __init__(self, strategy_name: str = "standard"):+ def __init__(self, strategy_name: str = "iterdrag"):"""Initialize the advanced search system.@@ -68,4 +68,7 @@ class AdvancedSearchSystem:if hasattr(self.strategy, "all_links_of_system"):self.all_links_of_system = self.strategy.all_links_of_system+ # Include the search system instance for access to citations+ result["search_system"] = self+return resultdiff --git a/src/local_deep_research/web/services/research_service.py b/src/local_deep_research/web/services/research_service.pyindex 0ac9d40c8b..ac070919a9 100644--- a/src/local_deep_research/web/services/research_service.py+++ b/src/local_deep_research/web/services/research_service.py@@ -519,7 +519,11 @@ def run_research_process("Generating detailed report...", 85, {"phase": "report_generation"})- report_generator = IntegratedReportGenerator()+ # Extract the search system from the results if available+ search_system = results.get("search_system", None)++ # Pass the existing search system to maintain citation indices+ report_generator = IntegratedReportGenerator(search_system=search_system)final_report = report_generator.generate_report(results, query)progress_callback(