~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: add settings_snapshot as explicit parameter to _init_search_system
LearningCircuit286115fc3610
diff --git a/src/local_deep_research/api/research_functions.py b/src/local_deep_research/api/research_functions.pyindex 2b39a1c6fa..a333ff89fd 100644--- a/src/local_deep_research/api/research_functions.py+++ b/src/local_deep_research/api/research_functions.py@@ -37,6 +37,7 @@ def _init_search_system(research_context: Optional[Dict[str, Any]] = None,programmatic_mode: bool = True,search_original_query: bool = True,+ settings_snapshot: Optional[Dict[str, Any]] = None,**kwargs: Any,) -> AdvancedSearchSystem:"""@@ -83,8 +84,9 @@ def _init_search_system(register_llm(name, llm_instance)logger.info(f"Registered {len(llms)} LLMs: {list(llms.keys())}")- # Extract settings_snapshot from kwargs if available- settings_snapshot = kwargs.get("settings_snapshot")+ # Use settings_snapshot from parameter, or fall back to kwargs+ if settings_snapshot is None:+ settings_snapshot = kwargs.get("settings_snapshot")# Get language model with custom temperaturellm = get_llm(@@ -99,9 +101,6 @@ def _init_search_system(# Set the search engine if specified or get from settingssearch_engine = None- # Use settings_snapshot from function params, or fall back to kwargs if not provided- if settings_snapshot is None:- settings_snapshot = kwargs.get("settings_snapshot")# If no search_tool provided, get from settings_snapshotif not search_tool and settings_snapshot: