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.

Add guidance for context window and iterations settings

LearningCircuite6d8fc1de38c
diff --git a/src/local_deep_research/web/app_factory.py b/src/local_deep_research/web/app_factory.py
index 17b27ca89c..2e36171fed 100644
--- a/src/local_deep_research/web/app_factory.py
+++ b/src/local_deep_research/web/app_factory.py
@@ -612,10 +612,10 @@ def register_blueprints(app):
"search.tool", ""
),
"search_iterations": settings_manager.get_setting(
- "search.iterations", 2
+ "search.iterations", 3
),
"search_questions_per_iteration": settings_manager.get_setting(
- "search.questions_per_iteration", 3
+ "search.questions_per_iteration", 2
),
"search_strategy": settings_manager.get_setting(
"search.search_strategy", "source-based"
diff --git a/src/local_deep_research/web/templates/pages/research.html b/src/local_deep_research/web/templates/pages/research.html
index 1c7239f385..5d250bd126 100644
--- a/src/local_deep_research/web/templates/pages/research.html
+++ b/src/local_deep_research/web/templates/pages/research.html
@@ -112,9 +112,9 @@
<!-- Context Window Size (for local providers, hidden by default) -->
<div class="ldr-form-group ldr-half" id="context_window_container" style="display: none;">
- <label for="context_window">{{ tooltip("Context Window Size", "How much text the model can 'see' at once. Too small: model forgets earlier info. Too large: uses more RAM/VRAM. Only adjust if you see 'context exceeded' errors.") }}</label>
+ <label for="context_window">{{ tooltip("Context Window Size", "How much text the model can 'see' at once. Focused Iteration strategies achieve higher performance with larger context windows (>16k). Source-Based works well with smaller contexts (<16k).") }}</label>
<input type="number" id="context_window" name="context_window" class="ldr-form-control" min="512" max="131072" step="512" value="{{ settings.llm_local_context_window_size }}">
- <span class="ldr-input-help">Context window size in tokens (512-131072)</span>
+ <span class="ldr-input-help">>16k for Focused Iteration, <16k for Source-Based</span>
</div>
<!-- OpenAI API Key (hidden by default) -->
@@ -217,7 +217,7 @@
<div class="ldr-form-group ldr-half">
<label for="iterations">{{ tooltip("Search Iterations", "Each cycle: AI generates follow-up questions based on what it found, then searches again. Searches run in parallel. More iterations = deeper coverage but longer wait.") }}</label>
<input type="number" id="iterations" name="iterations" class="ldr-form-control" min="1" value="{{ settings.search_iterations }}">
- <span class="ldr-input-help">More iterations = deeper research, longer time</span>
+ <span class="ldr-input-help">More iterations = deeper research (10 can make sense for Focused Iteration)</span>
</div>
<!-- Questions Per Iteration -->