~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 to search system test initialization
LearningCircuit701b053d6f3c
diff --git a/tests/test_search_system.py b/tests/test_search_system.pyindex 96364ad007..b6a222acc1 100644--- a/tests/test_search_system.py+++ b/tests/test_search_system.py@@ -102,14 +102,23 @@ def test_init_source_based_strategy(monkeypatch):# Import after mockingfrom local_deep_research.search_system import AdvancedSearchSystem+ # Create settings snapshot for the test+ settings_snapshot = {+ "search.cross_engine_max_results": {"value": 100, "type": "int"},+ "search.cross_engine_use_reddit": {"value": False, "type": "bool"},+ "search.cross_engine_min_date": {"value": None, "type": "str"},+ }+# Create with default strategy (source-based)- system = AdvancedSearchSystem()+ system = AdvancedSearchSystem(settings_snapshot=settings_snapshot)# Check if the correct strategy type was createdassert "SourceBasedSearchStrategy" in system.strategy.__class__.__name__# Also test explicit source-based strategy- system_explicit = AdvancedSearchSystem(strategy_name="source-based")+ system_explicit = AdvancedSearchSystem(+ strategy_name="source-based", settings_snapshot=settings_snapshot+ )assert ("SourceBasedSearchStrategy"in system_explicit.strategy.__class__.__name__@@ -159,8 +168,17 @@ def test_init_parallel_strategy(monkeypatch):# Import after mockingfrom local_deep_research.search_system import AdvancedSearchSystem+ # Create settings snapshot for the test+ settings_snapshot = {+ "search.cross_engine_max_results": {"value": 100, "type": "int"},+ "search.cross_engine_use_reddit": {"value": False, "type": "bool"},+ "search.cross_engine_min_date": {"value": None, "type": "str"},+ }+# Create with parallel strategy- system = AdvancedSearchSystem(strategy_name="parallel")+ system = AdvancedSearchSystem(+ strategy_name="parallel", settings_snapshot=settings_snapshot+ )# Check if the correct strategy type was createdassert "ParallelSearchStrategy" in system.strategy.__class__.__name__@@ -236,7 +254,14 @@ def test_set_progress_callback(monkeypatch):# Import after mockingfrom local_deep_research.search_system import AdvancedSearchSystem- system = AdvancedSearchSystem()+ # Create settings snapshot for the test+ settings_snapshot = {+ "search.cross_engine_max_results": {"value": 100, "type": "int"},+ "search.cross_engine_use_reddit": {"value": False, "type": "bool"},+ "search.cross_engine_min_date": {"value": None, "type": "str"},+ }++ system = AdvancedSearchSystem(settings_snapshot=settings_snapshot)# Create a mock callbackmock_callback = Mock()@@ -298,21 +323,21 @@ def test_analyze_topic(monkeypatch):"local_deep_research.search_system.SourceBasedSearchStrategy",mock_strategy_class,)- # Mock get_db_setting for progress callback- monkeypatch.setattr(- "local_deep_research.search_system.get_setting_from_db_main_thread",- lambda key, default=None: {- "llm.provider": "test_provider",- "llm.model": "test_model",- "search.tool": "test_search",- }.get(key, default),- )-# Import after mockingfrom local_deep_research.search_system import AdvancedSearchSystem+ # Create settings snapshot for the test+ settings_snapshot = {+ "search.cross_engine_max_results": {"value": 100, "type": "int"},+ "search.cross_engine_use_reddit": {"value": False, "type": "bool"},+ "search.cross_engine_min_date": {"value": None, "type": "str"},+ "llm.provider": {"value": "test_provider", "type": "str"},+ "llm.model": {"value": "test_model", "type": "str"},+ "search.tool": {"value": "test_search", "type": "str"},+ }+# Create the search system (uses source-based strategy by default)- system = AdvancedSearchSystem()+ system = AdvancedSearchSystem(settings_snapshot=settings_snapshot)# Set mock all_links_of_system attribute on the strategysystem.strategy.all_links_of_system = [