~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.
Python academiaanthropicarxivbravedeep-researchencryptionhome-automationhomeserverlocallocal-deep-researchlocal-llmmistralollamaopenaipubmedresearchresearch-toolretrieval-augmented-generationsearxngself-hosted
fix: fact-checking setting toggle was broken (ui_element was "text" not "checkbox") (#2763)
LearningCircuitdde32a3cb044
diff --git a/src/local_deep_research/citation_handlers/base_citation_handler.py b/src/local_deep_research/citation_handlers/base_citation_handler.pyindex 3c0fa91ded..c3d01c6b68 100644--- a/src/local_deep_research/citation_handlers/base_citation_handler.py+++ b/src/local_deep_research/citation_handlers/base_citation_handler.py@@ -6,6 +6,7 @@ from abc import ABC, abstractmethodfrom typing import Any, Dict, List, Unionfrom langchain_core.documents import Document+from loguru import loggerclass BaseCitationHandler(ABC):@@ -14,6 +15,7 @@ class BaseCitationHandler(ABC):def __init__(self, llm, settings_snapshot=None):self.llm = llmself.settings_snapshot = settings_snapshot or {}+ self._fact_checking_logged = Falsedef get_setting(self, key: str, default=None):"""Get a setting value from the snapshot."""@@ -25,6 +27,21 @@ class BaseCitationHandler(ABC):return valuereturn default+ 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)+ if not self._fact_checking_logged:+ handler_name = type(self).__name__+ if enabled:+ logger.info(+ f"[{handler_name}] Fact-checking is ENABLED — "+ f"extra LLM call per synthesis"+ )+ else:+ logger.info(f"[{handler_name}] Fact-checking is DISABLED")+ self._fact_checking_logged = True+ return enabled+def _get_output_instruction_prefix(self) -> str:"""Get formatted output instructions from settings if present.diff --git a/src/local_deep_research/citation_handlers/forced_answer_citation_handler.py b/src/local_deep_research/citation_handlers/forced_answer_citation_handler.pyindex 172d03451f..65d41fcd67 100644--- a/src/local_deep_research/citation_handlers/forced_answer_citation_handler.py+++ b/src/local_deep_research/citation_handlers/forced_answer_citation_handler.py@@ -73,7 +73,7 @@ Example response format:# Fact-checking step (if enabled)fact_check_response = ""- if self.get_setting("general.enable_fact_checking", True):+ if self.is_fact_checking_enabled():fact_check_prompt = f"""Analyze these sources for factual consistency:1. Cross-reference major claims between sources2. Identify the most frequently mentioned answerdiff --git a/src/local_deep_research/citation_handlers/standard_citation_handler.py b/src/local_deep_research/citation_handlers/standard_citation_handler.pyindex ca514ed619..10dbb837b1 100644--- a/src/local_deep_research/citation_handlers/standard_citation_handler.py+++ b/src/local_deep_research/citation_handlers/standard_citation_handler.py@@ -65,7 +65,7 @@ New Sources:{formatted_sources}Return any inconsistencies or conflicts found."""- if self.get_setting("general.enable_fact_checking", True):+ if self.is_fact_checking_enabled():fact_check_response = self.llm.invoke(fact_check_prompt).contentelse:diff --git a/src/local_deep_research/defaults/default_settings.json b/src/local_deep_research/defaults/default_settings.jsonindex 599fda4871..8fdd9eb993 100644--- a/src/local_deep_research/defaults/default_settings.json+++ b/src/local_deep_research/defaults/default_settings.json@@ -1940,8 +1940,8 @@"options": null,"step": null,"type": "APP",- "ui_element": "text",- "value": false,+ "ui_element": "checkbox",+ "value": true,"visible": true},"general.knowledge_accumulation": {diff --git a/tests/settings/golden_master_settings.json b/tests/settings/golden_master_settings.jsonindex 3c00eacf27..88578f91ae 100644--- a/tests/settings/golden_master_settings.json+++ b/tests/settings/golden_master_settings.json@@ -722,8 +722,8 @@"options": null,"step": null,"type": "APP",- "ui_element": "text",- "value": false,+ "ui_element": "checkbox",+ "value": true,"visible": true},"general.knowledge_accumulation": {