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.

refactor: move focused-iteration settings to dedicated category

LearningCircuit7b1238c7d3fb
diff --git a/src/local_deep_research/defaults/default_settings.json b/src/local_deep_research/defaults/default_settings.json
index f46c0f6ec5..a957e95e58 100644
--- a/src/local_deep_research/defaults/default_settings.json
+++ b/src/local_deep_research/defaults/default_settings.json
@@ -740,9 +740,9 @@
"value": 3,
"visible": true
},
- "search.enable_adaptive_questions": {
- "category": "search_parameters",
- "description": "When enabled, the question generator adapts based on search result counts (tells LLM when searches return 0 results). Disable for main-branch-like behavior.",
+ "focused_iteration.adaptive_questions": {
+ "category": "focused_iteration",
+ "description": "Enables intelligent adaptation of search queries based on previous results. When ON: If 3+ recent searches return 0 results, the LLM is warned that queries are 'too narrow' and instructed to use broader, simpler terms. When OFF: The LLM generates questions without knowing which searches succeeded or failed (stable, main-branch behavior).",
"editable": true,
"max_value": null,
"min_value": null,
@@ -754,13 +754,13 @@
"value": false,
"visible": true
},
- "search.knowledge_summary_limit": {
- "category": "search_parameters",
- "description": "Maximum number of search results to show LLM when generating follow-up questions. Set to 0 for unlimited. Does not affect final synthesis (which always sees all results).",
+ "focused_iteration.knowledge_summary_limit": {
+ "category": "focused_iteration",
+ "description": "Controls how many previous search results the LLM sees when generating follow-up questions. Lower values (e.g., 10) reduce context size and focus the LLM on top results. Set to 0 for unlimited (LLM sees all results). NOTE: This only affects question generation - the final answer synthesis always sees ALL results.",
"editable": true,
"max_value": 100,
"min_value": 0,
- "name": "Knowledge Summary Limit",
+ "name": "Results Shown for Question Generation",
"options": null,
"step": null,
"type": "SEARCH",
@@ -768,13 +768,13 @@
"value": 10,
"visible": true
},
- "search.knowledge_snippet_truncate": {
- "category": "search_parameters",
- "description": "Maximum characters per snippet when showing results to LLM for question generation. Set to 0 for no truncation.",
+ "focused_iteration.snippet_truncate": {
+ "category": "focused_iteration",
+ "description": "Maximum characters per snippet when showing search results to LLM for question generation. Shorter snippets (e.g., 200) reduce token usage and keep context focused. Set to 0 for full snippets. NOTE: This only affects question generation - the final answer synthesis sees full snippets.",
"editable": true,
"max_value": 1000,
"min_value": 0,
- "name": "Snippet Truncation Length",
+ "name": "Snippet Length for Question Generation",
"options": null,
"step": null,
"type": "SEARCH",
@@ -782,13 +782,13 @@
"value": 200,
"visible": true
},
- "search.question_generator": {
- "category": "search_parameters",
- "description": "Question generator for focused-iteration strategies. 'browsecomp' uses structured entity extraction, 'flexible' gives LLM more freedom.",
+ "focused_iteration.question_generator": {
+ "category": "focused_iteration",
+ "description": "Algorithm for generating follow-up search queries. 'browsecomp': Extracts entities (names, dates, locations) from the query and systematically combines them - more structured and predictable. 'flexible': Gives the LLM more freedom to explore different search strategies - less rigid but may be less consistent.",
"editable": true,
"max_value": null,
"min_value": null,
- "name": "Question Generator",
+ "name": "Question Generation Algorithm",
"options": [
"browsecomp",
"flexible"
diff --git a/src/local_deep_research/search_system_factory.py b/src/local_deep_research/search_system_factory.py
index 2df525c7d5..4ccc69385f 100644
--- a/src/local_deep_research/search_system_factory.py
+++ b/src/local_deep_research/search_system_factory.py
@@ -78,29 +78,33 @@ def create_strategy(
FocusedIterationStrategy,
)
- # Read settings with kwargs override
+ # Read focused_iteration settings with kwargs override
enable_adaptive = kwargs.get(
"enable_adaptive_questions",
_get_setting(
- settings_snapshot, "search.enable_adaptive_questions", False
+ settings_snapshot, "focused_iteration.adaptive_questions", False
),
)
knowledge_limit = kwargs.get(
"knowledge_summary_limit",
_get_setting(
- settings_snapshot, "search.knowledge_summary_limit", 10
+ settings_snapshot,
+ "focused_iteration.knowledge_summary_limit",
+ 10,
),
)
snippet_truncate = kwargs.get(
"knowledge_snippet_truncate",
_get_setting(
- settings_snapshot, "search.knowledge_snippet_truncate", 200
+ settings_snapshot, "focused_iteration.snippet_truncate", 200
),
)
question_gen_type = kwargs.get(
"question_generator",
_get_setting(
- settings_snapshot, "search.question_generator", "browsecomp"
+ settings_snapshot,
+ "focused_iteration.question_generator",
+ "browsecomp",
),
)
# Convert 0 to None for "unlimited"
@@ -155,29 +159,33 @@ def create_strategy(
model, handler_type="standard", settings_snapshot=settings_snapshot
)
- # Read settings with kwargs override
+ # Read focused_iteration settings with kwargs override
enable_adaptive = kwargs.get(
"enable_adaptive_questions",
_get_setting(
- settings_snapshot, "search.enable_adaptive_questions", False
+ settings_snapshot, "focused_iteration.adaptive_questions", False
),
)
knowledge_limit = kwargs.get(
"knowledge_summary_limit",
_get_setting(
- settings_snapshot, "search.knowledge_summary_limit", 10
+ settings_snapshot,
+ "focused_iteration.knowledge_summary_limit",
+ 10,
),
)
snippet_truncate = kwargs.get(
"knowledge_snippet_truncate",
_get_setting(
- settings_snapshot, "search.knowledge_snippet_truncate", 200
+ settings_snapshot, "focused_iteration.snippet_truncate", 200
),
)
question_gen_type = kwargs.get(
"question_generator",
_get_setting(
- settings_snapshot, "search.question_generator", "browsecomp"
+ settings_snapshot,
+ "focused_iteration.question_generator",
+ "browsecomp",
),
)
# Convert 0 to None for "unlimited"