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.

config: disable general.enable_fact_checking by default (#3672)

LearningCircuit08969f5ad264
diff --git a/docs/CONFIGURATION.md b/docs/CONFIGURATION.md
index 5c59a8a896..a008417cf3 100644
--- a/docs/CONFIGURATION.md
+++ b/docs/CONFIGURATION.md
@@ -100,7 +100,7 @@ They are not available in the Web UI because they are needed to start the applic
| `focused_iteration.prompt_knowledge_truncate` | `LDR_FOCUSED_ITERATION_PROMPT_KNOWLEDGE_TRUNCATE` | `1500` | Maximum characters of accumulated knowledge to include in the LLM prompt for follow-up question generation. Applied after 'Results Shown for Question Generation' selects the top N results — this further truncates that combined text to a character limit. Set to 0 for unlimited. | SEARCH |
| `focused_iteration.question_generator` | `LDR_FOCUSED_ITERATION_QUESTION_GENERATOR` | `browsecomp` | Algorithm for generating follow-up search queries. 'browsecomp' (default): Systematically extracts and combines entities (names, dates, locations) for predictable, focused searches. 'flexible': Allows the LLM more freedom to explore diverse search strategies — less rigid but may be less consistent. | SEARCH |
| `focused_iteration.snippet_truncate` | `LDR_FOCUSED_ITERATION_SNIPPET_TRUNCATE` | `200` | 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. | SEARCH |
-| `general.enable_fact_checking` | `LDR_GENERAL_ENABLE_FACT_CHECKING` | `true` | Enable LLM-based fact verification for research findings. Adds additional validation pass to check claims against sources. | APP |
+| `general.enable_fact_checking` | `LDR_GENERAL_ENABLE_FACT_CHECKING` | `false` | Enable LLM-based fact verification for research findings. Adds additional validation pass to check claims against sources. | APP |
| `general.knowledge_accumulation` | `LDR_GENERAL_KNOWLEDGE_ACCUMULATION` | `ITERATION` | How to compress accumulated knowledge between search iterations. 'ITERATION': Compress and carry forward knowledge after each iteration completes (default). 'QUESTION': Compress after every individual question within an iteration (more aggressive, saves tokens). 'NO_KNOWLEDGE': Start fresh each iteration with no carried-forward context. | APP |
| `general.knowledge_accumulation_context_limit` | `LDR_GENERAL_KNOWLEDGE_ACCUMULATION_CONTEXT_LIMIT` | `2000000` | Maximum character count for accumulated knowledge context. Reserved for future use — not currently enforced at runtime. | APP |
| `general.output_instructions` | `LDR_GENERAL_OUTPUT_INSTRUCTIONS` | `` | Customize how research outputs are formatted: language, tone, style, formatting preferences, audience level, etc. Examples: 'Respond in Spanish with formal tone' \| 'Use simple language for beginners' \| 'Be concise with bullet points'. Leave empty for default English output. | APP |
diff --git a/src/local_deep_research/citation_handlers/base_citation_handler.py b/src/local_deep_research/citation_handlers/base_citation_handler.py
index 494c2aeeca..89618e2afe 100644
--- a/src/local_deep_research/citation_handlers/base_citation_handler.py
+++ b/src/local_deep_research/citation_handlers/base_citation_handler.py
@@ -29,7 +29,7 @@ class BaseCitationHandler(ABC):
def is_fact_checking_enabled(self) -> bool:
"""Check if fact-checking is enabled and log the state once."""
- enabled = self.get_setting("general.enable_fact_checking", True)
+ enabled = self.get_setting("general.enable_fact_checking", False)
if not self._fact_checking_logged:
handler_name = type(self).__name__
if enabled:
diff --git a/src/local_deep_research/defaults/default_settings.json b/src/local_deep_research/defaults/default_settings.json
index 1754974b19..28d5bdc7eb 100644
--- a/src/local_deep_research/defaults/default_settings.json
+++ b/src/local_deep_research/defaults/default_settings.json
@@ -1888,7 +1888,7 @@
"step": null,
"type": "APP",
"ui_element": "checkbox",
- "value": true,
+ "value": false,
"visible": true
},
"general.knowledge_accumulation": {
diff --git a/tests/citation_handlers/test_citation_handler_edge_cases.py b/tests/citation_handlers/test_citation_handler_edge_cases.py
index 2e9cbb5ca7..1957b2d2c6 100644
--- a/tests/citation_handlers/test_citation_handler_edge_cases.py
+++ b/tests/citation_handlers/test_citation_handler_edge_cases.py
@@ -213,8 +213,8 @@ class TestStandardCitationHandlerAnalyzeInitial:
class TestStandardCitationHandlerFactChecking:
"""Test fact-checking toggle in analyze_followup."""
- def test_fact_checking_enabled_by_default(self):
- """Fact checking invokes LLM twice when enabled (default)."""
+ def test_fact_checking_disabled_by_default(self):
+ """Fact checking is off by default; LLM is invoked only once for analysis."""
mock_llm = MagicMock()
mock_llm.invoke.return_value = MagicMock(content="response")
handler = StandardCitationHandler(llm=mock_llm)
@@ -224,8 +224,8 @@ class TestStandardCitationHandlerFactChecking:
]
handler.analyze_followup("question", results, "previous knowledge", 0)
- # Should be called twice: once for fact-check, once for analysis
- assert mock_llm.invoke.call_count == 2
+ # Should be called once: just the main analysis (no fact-check pass)
+ assert mock_llm.invoke.call_count == 1
def test_fact_checking_disabled_skips_extra_call(self):
"""When fact_checking disabled, LLM is called only once for main analysis."""
diff --git a/tests/settings/golden_master_settings.json b/tests/settings/golden_master_settings.json
index aa3dc9703b..917994c65f 100644
--- a/tests/settings/golden_master_settings.json
+++ b/tests/settings/golden_master_settings.json
@@ -765,7 +765,7 @@
"step": null,
"type": "APP",
"ui_element": "checkbox",
- "value": true,
+ "value": false,
"visible": true
},
"general.knowledge_accumulation": {