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.

Fix issue with reading the search tool from the database.

Daniel Petti3a4624e09401
diff --git a/src/local_deep_research/config/search_config.py b/src/local_deep_research/config/search_config.py
index d9732ddc6b..19677a2762 100644
--- a/src/local_deep_research/config/search_config.py
+++ b/src/local_deep_research/config/search_config.py
@@ -1,6 +1,7 @@
# local_deep_research/config.py
import logging
+from ..utilties.db_utils import get_db_setting
from ..web_search_engines.search_engine_factory import get_search as factory_get_search
from .config_files import settings
from .llm_config import get_llm
@@ -26,7 +27,7 @@ def get_search(search_tool=None, llm_instance=None):
"""
# Use specified tool or default from settings
- tool = search_tool or settings.search.tool
+ tool = search_tool or get_db_setting("search.tool", settings.search.tool)
logger.info(f"Creating search engine with tool: {tool}")
# Get LLM instance (use provided or get fresh one)
diff --git a/src/local_deep_research/web/services/settings_manager.py b/src/local_deep_research/web/services/settings_manager.py
index 7b30e266a9..3ddc52c5f1 100644
--- a/src/local_deep_research/web/services/settings_manager.py
+++ b/src/local_deep_research/web/services/settings_manager.py
@@ -47,13 +47,6 @@ class SettingsManager:
# In-memory cache for settings
self._settings_cache: Dict[str, Any] = {}
- # Load settings from database first
- if db_session:
- self._load_settings_from_db()
-
- # Always load from files as fallback
- self._load_settings_from_files_as_fallback()
-
def get_setting(self, key: str, default: Any = None) -> Any:
"""
Get a setting value