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.

minor

LearningCircuit6642e80b5d6b
diff --git a/src/local_deep_research/advanced_search_system/strategies/iterdrag_strategy.py b/src/local_deep_research/advanced_search_system/strategies/iterdrag_strategy.py
index 6eb0940a64..e8c535c496 100644
--- a/src/local_deep_research/advanced_search_system/strategies/iterdrag_strategy.py
+++ b/src/local_deep_research/advanced_search_system/strategies/iterdrag_strategy.py
@@ -194,12 +194,6 @@ Initial Search Results:
logger.error(f"Error searching for sub-query: {str(e)}")
sub_results = []
- # Extract and save links
- sub_links = extract_links_from_search_results(sub_results)
- self.all_links_of_system.extend(sub_links)
- section_links.extend(sub_links)
-
- # Analyze sub-query results
try:
# Use previous knowledge to answer this sub-query
result = self.citation_handler.analyze_followup(
@@ -209,6 +203,11 @@ Initial Search Results:
nr_of_links=len(self.all_links_of_system),
)
+ # Extract and save links AFTER citation handler processes results
+ sub_links = extract_links_from_search_results(sub_results)
+ self.all_links_of_system.extend(sub_links)
+ section_links.extend(sub_links)
+
if result is not None:
finding = {
"phase": f"Sub-query {i}",