~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
docs: restore small inline comments removed during comprehensive documentation pass (#2418)
LearningCircuit180331b8c04a
diff --git a/src/local_deep_research/advanced_search_system/strategies/source_based_strategy.py b/src/local_deep_research/advanced_search_system/strategies/source_based_strategy.pyindex 2d7dbd4fe0..07286c39e3 100644--- a/src/local_deep_research/advanced_search_system/strategies/source_based_strategy.py+++ b/src/local_deep_research/advanced_search_system/strategies/source_based_strategy.py@@ -104,8 +104,10 @@ class SourceBasedSearchStrategy(BaseSearchStrategy):search_original_query=search_original_query,)+ # Model and search are always provided by AdvancedSearchSystemself.model = modelself.search = search+ # Note: progress_callback and questions_by_iteration are already set by parent classself.include_text_content = include_text_contentself.use_cross_engine_filter = use_cross_engine_filter@@ -120,11 +122,14 @@ class SourceBasedSearchStrategy(BaseSearchStrategy):settings_snapshot=settings_snapshot,)+ # Set include_full_content on the search engine if it supports itif hasattr(self.search, "include_full_content"):self.search.include_full_content = include_text_content+ # Use provided citation_handler or create defaultself.citation_handler = citation_handler or CitationHandler(self.model)+ # Initialize question generator (atomic facts variant is experimental)if use_atomic_facts:self.question_generator = AtomicFactQuestionGenerator(self.model)else:@@ -239,6 +244,7 @@ class SourceBasedSearchStrategy(BaseSearchStrategy):# research" → Austin heat islands). The verbatim query ensures at least# one search hits the right topic.if iteration == 1:+ # Check if user query is too long for direct searchmax_query_length = self.get_setting("app.max_user_query_length", 300)@@ -474,6 +480,7 @@ class SourceBasedSearchStrategy(BaseSearchStrategy):# Since these are the same dict objects now in all_links_of_system,# the indices propagate to the shared list automatically.+ # Null check — synthesis can fail on empty/malformed resultsif final_citation_result:synthesized_content = final_citation_result["content"]documents = final_citation_result.get("documents", [])@@ -493,6 +500,7 @@ class SourceBasedSearchStrategy(BaseSearchStrategy):findings.append(final_finding)self.findings_repository.add_documents(documents)+ # Transfer questions so they appear in the formatted outputself.findings_repository.set_questions_by_iteration(self.questions_by_iteration)