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.

fixed parameter iterations and research iterations now there is only one parameter

LearningCircuitb467acf8a0cb
diff --git a/src/local_deep_research/advanced_search_system/strategies/parallel_search_strategy.py b/src/local_deep_research/advanced_search_system/strategies/parallel_search_strategy.py
index 84591670be..ee7005900b 100644
--- a/src/local_deep_research/advanced_search_system/strategies/parallel_search_strategy.py
+++ b/src/local_deep_research/advanced_search_system/strategies/parallel_search_strategy.py
@@ -119,7 +119,7 @@ class ParallelSearchStrategy(BaseSearchStrategy):
# Determine number of iterations to run
iterations_to_run = get_db_setting("search.iterations")
- logger.debug("Selected amount of iterations: " + iterations_to_run)
+ logger.debug("Selected amount of iterations: " + str(iterations_to_run))
iterations_to_run = int(iterations_to_run)
try:
# Run each iteration
diff --git a/src/local_deep_research/advanced_search_system/strategies/standard_strategy.py b/src/local_deep_research/advanced_search_system/strategies/standard_strategy.py
index f4c6bf325e..0a384c5890 100644
--- a/src/local_deep_research/advanced_search_system/strategies/standard_strategy.py
+++ b/src/local_deep_research/advanced_search_system/strategies/standard_strategy.py
@@ -26,7 +26,10 @@ class StandardSearchStrategy(BaseSearchStrategy):
super().__init__(all_links_of_system=all_links_of_system)
self.search = search or get_search()
self.model = model or get_llm()
+
+ # Get iterations setting
self.max_iterations = int(get_db_setting("search.iterations"))
+
self.questions_per_iteration = int(
get_db_setting("search.questions_per_iteration")
)
diff --git a/src/local_deep_research/defaults/default_settings.json b/src/local_deep_research/defaults/default_settings.json
index 647f72253b..9a9732ed08 100644
--- a/src/local_deep_research/defaults/default_settings.json
+++ b/src/local_deep_research/defaults/default_settings.json
@@ -436,7 +436,7 @@
"editable": true,
"max_value": null,
"min_value": 1,
- "name": "Iterations",
+ "name": "Search Iterations",
"options": null,
"step": null,
"type": "SEARCH",
@@ -553,20 +553,6 @@
"value": "us",
"visible": true
},
- "search.research_iterations": {
- "category": "search_parameters",
- "description": "Number of research cycles to perform",
- "editable": true,
- "max_value": 5.0,
- "min_value": 1.0,
- "name": "Research Iterations",
- "options": null,
- "step": null,
- "type": "SEARCH",
- "ui_element": "number",
- "value": 2,
- "visible": true
- },
"search.safe_search": {
"category": "search_parameters",
"description": "Enable safe search filtering",
diff --git a/src/local_deep_research/search_system.py b/src/local_deep_research/search_system.py
index 5b162a335a..5f8f92bc44 100644
--- a/src/local_deep_research/search_system.py
+++ b/src/local_deep_research/search_system.py
@@ -57,7 +57,10 @@ class AdvancedSearchSystem:
self.search = search
if search is None:
self.search = get_search(llm_instance=self.model)
+
+ # Get iterations setting
self.max_iterations = get_db_setting("search.iterations", 1)
+
self.questions_per_iteration = get_db_setting(
"search.questions_per_iteration", 3
)
diff --git a/src/local_deep_research/web/routes/settings_routes.py b/src/local_deep_research/web/routes/settings_routes.py
index d1b98ddea2..46deff2945 100644
--- a/src/local_deep_research/web/routes/settings_routes.py
+++ b/src/local_deep_research/web/routes/settings_routes.py
@@ -1105,7 +1105,6 @@ def fix_corrupted_settings():
# Search settings
for key in [
- "app.research_iterations",
"app.questions_per_iteration",
"app.search_engine",
"app.iterations",
@@ -1243,8 +1242,6 @@ def fix_corrupted_settings():
default_value = 10
elif setting.key == "search.region":
default_value = "us"
- elif setting.key == "search.research_iterations":
- default_value = 2
elif setting.key == "search.questions_per_iteration":
default_value = 3
elif setting.key == "search.searches_per_section":
diff --git a/src/local_deep_research/web/static/js/components/settings.js b/src/local_deep_research/web/static/js/components/settings.js
index 5dfe94d02a..09ef200b48 100644
--- a/src/local_deep_research/web/static/js/components/settings.js
+++ b/src/local_deep_research/web/static/js/components/settings.js
@@ -1089,7 +1089,6 @@
'max_results',
'quality_check_urls',
'questions_per_iteration',
- 'research_iterations',
'region',
'search_engine',
'searches_per_section',
@@ -1124,7 +1123,7 @@
const prioritySettings = {
'app': ['enable_web', 'enable_notifications', 'web_interface', 'theme', 'default_theme', 'dark_mode', 'debug', 'host', 'port'],
'llm': ['provider', 'model', 'temperature', 'max_tokens', 'api_key', 'openai_endpoint_url', 'lmstudio_url', 'llamacpp_model_path'],
- 'search': ['tool', 'search_engine', 'iterations', 'questions_per_iteration', 'research_iterations', 'max_results', 'region'],
+ 'search': ['tool', 'iterations', 'questions_per_iteration', 'max_results', 'region', 'search_engine'],
'report': ['enable_fact_checking', 'knowledge_accumulation', 'output_dir', 'detailed_citations']
};
diff --git a/src/local_deep_research/web/static/js/research_form.js b/src/local_deep_research/web/static/js/research_form.js
index c0a20a64f7..b1045dd0ad 100644
--- a/src/local_deep_research/web/static/js/research_form.js
+++ b/src/local_deep_research/web/static/js/research_form.js
@@ -31,9 +31,9 @@ function initResearchForm() {
// Find our specific settings
const settings = data.settings;
- // Look for the research iterations setting
+ // Look for the iterations setting
for (const setting of settings) {
- if (setting.key === 'search.research_iterations' || setting.key === 'search.iterations') {
+ if (setting.key === 'search.iterations') {
console.log('Found iterations setting:', setting.value);
iterationsInput.value = setting.value;
}
diff --git a/src/local_deep_research/web/templates/pages/research.html b/src/local_deep_research/web/templates/pages/research.html
index d6c2453a45..ad5cb43bc5 100644
--- a/src/local_deep_research/web/templates/pages/research.html
+++ b/src/local_deep_research/web/templates/pages/research.html
@@ -99,9 +99,9 @@
</div>
<div class="form-row">
- <!-- Research Iterations -->
+ <!-- Search Iterations -->
<div class="form-group half">
- <label for="iterations">Research Iterations</label>
+ <label for="iterations">Search Iterations</label>
<input type="number" id="iterations" name="iterations" class="form-control" min="1" max="5" value="2">
<span class="input-help">Number of research cycles to perform</span>
</div>