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.

feat: show previous questions and source count during question generation

LearningCircuitb04269c50544
diff --git a/src/local_deep_research/advanced_search_system/strategies/focused_iteration_strategy.py b/src/local_deep_research/advanced_search_system/strategies/focused_iteration_strategy.py
index 1dc5b1085f..e5c6ea62aa 100644
--- a/src/local_deep_research/advanced_search_system/strategies/focused_iteration_strategy.py
+++ b/src/local_deep_research/advanced_search_system/strategies/focused_iteration_strategy.py
@@ -150,6 +150,37 @@ class FocusedIterationStrategy(BaseSearchStrategy):
{"phase": f"iteration_{iteration}", "iteration": iteration},
)
+ # Show context-aware progress message for question generation
+ if iteration == 1:
+ self._update_progress(
+ "Generating initial search questions...",
+ iteration_progress + 2,
+ {
+ "phase": "question_generation",
+ "iteration": iteration,
+ },
+ )
+ else:
+ # Show previous questions and source count
+ prev_questions = self.questions_by_iteration.get(
+ iteration - 1, []
+ )
+ source_count = len(self.all_search_results)
+ prev_display = "\n".join(
+ f"• {q[:60]}{'...' if len(q) > 60 else ''}"
+ for q in prev_questions[:3]
+ )
+ self._update_progress(
+ f"Generating questions from {source_count} sources:\n{prev_display}",
+ iteration_progress + 2,
+ {
+ "phase": "question_generation",
+ "type": "milestone",
+ "iteration": iteration,
+ "source_count": source_count,
+ },
+ )
+
# Generate questions for this iteration
if self.use_browsecomp_optimization:
# Use BrowseComp-aware question generation
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.py
index c59de5f5e0..187b1db880 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
@@ -158,11 +158,36 @@ class SourceBasedSearchStrategy(BaseSearchStrategy):
)
# Step 1: Generate or use questions
- self._update_progress(
- f"Generating search questions for iteration {iteration}",
- iteration_progress_base + 5,
- {"phase": "question_generation", "iteration": iteration},
- )
+ # Show context-aware progress message
+ if iteration == 1:
+ self._update_progress(
+ "Generating initial search questions...",
+ iteration_progress_base + 5,
+ {
+ "phase": "question_generation",
+ "iteration": iteration,
+ },
+ )
+ else:
+ # Show previous questions and source count
+ prev_questions = self.questions_by_iteration.get(
+ iteration - 1, []
+ )
+ source_count = len(filtered_search_results)
+ prev_display = "\n".join(
+ f"• {q[:60]}{'...' if len(q) > 60 else ''}"
+ for q in prev_questions[:3]
+ )
+ self._update_progress(
+ f"Generating questions from {source_count} sources:\n{prev_display}",
+ iteration_progress_base + 5,
+ {
+ "phase": "question_generation",
+ "type": "milestone",
+ "iteration": iteration,
+ "source_count": source_count,
+ },
+ )
# For first iteration, use initial query
if iteration == 1: