~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 search strategy selection for source-based strategy
LearningCircuit834977950602
diff --git a/src/local_deep_research/benchmarks/web_api/benchmark_routes.py b/src/local_deep_research/benchmarks/web_api/benchmark_routes.pyindex 5323fece74..32c3fa4a6d 100644--- a/src/local_deep_research/benchmarks/web_api/benchmark_routes.py+++ b/src/local_deep_research/benchmarks/web_api/benchmark_routes.py@@ -168,7 +168,9 @@ def start_benchmark():except Exception as e:logger.error(f"Error starting benchmark: {e}")- return jsonify({"success": False, "error": "An internal error has occurred."}), 500+ return jsonify(+ {"success": False, "error": "An internal error has occurred."}+ ), 500@benchmark_bp.route("/api/running", methods=["GET"])@@ -207,7 +209,9 @@ def get_running_benchmark():except Exception as e:logger.error(f"Error checking for running benchmark: {e}")- return jsonify({"success": False, "error": "An internal error has occurred."}), 500+ return jsonify(+ {"success": False, "error": "An internal error has occurred."}+ ), 500@benchmark_bp.route("/api/status/<int:benchmark_run_id>", methods=["GET"])@@ -225,7 +229,9 @@ def get_benchmark_status(benchmark_run_id: int):except Exception as e:logger.error(f"Error getting benchmark status: {e}")- return jsonify({"success": False, "error": "An internal error has occurred."}), 500+ return jsonify(+ {"success": False, "error": "An internal error has occurred."}+ ), 500@benchmark_bp.route("/api/cancel/<int:benchmark_run_id>", methods=["POST"])@@ -245,7 +251,9 @@ def cancel_benchmark(benchmark_run_id: int):except Exception as e:logger.error(f"Error cancelling benchmark: {e}")- return jsonify({"success": False, "error": "An internal error has occurred."}), 500+ return jsonify(+ {"success": False, "error": "An internal error has occurred."}+ ), 500@benchmark_bp.route("/api/history", methods=["GET"])@@ -372,7 +380,9 @@ def get_benchmark_history():except Exception as e:logger.error(f"Error getting benchmark history: {e}")- return jsonify({"success": False, "error": "An internal error has occurred."}), 500+ return jsonify(+ {"success": False, "error": "An internal error has occurred."}+ ), 500@benchmark_bp.route("/api/results/<int:benchmark_run_id>", methods=["GET"])@@ -439,6 +449,12 @@ def get_benchmark_results(benchmark_run_id: int):logger.info(f"Found search metrics for {len(search_results_by_research_id)} research IDs from {len(all_search_calls)} total search calls")+ logger.debug(+ f"Research IDs from results: {research_ids[:5] if len(research_ids) > 5 else research_ids}"+ )+ logger.debug(+ f"Search results by research_id: {dict(list(search_results_by_research_id.items())[:5])}"+ )except Exception as e:logger.error(f"Error getting search metrics for benchmark {benchmark_run_id}: {e}"@@ -508,7 +524,9 @@ def get_benchmark_results(benchmark_run_id: int):except Exception as e:logger.error(f"Error getting benchmark results: {e}")- return jsonify({"success": False, "error": "An internal error has occurred."}), 500+ return jsonify(+ {"success": False, "error": "An internal error has occurred."}+ ), 500@benchmark_bp.route("/api/configs", methods=["GET"])diff --git a/src/local_deep_research/search_system.py b/src/local_deep_research/search_system.pyindex a64882393b..ed0e73f581 100644--- a/src/local_deep_research/search_system.py+++ b/src/local_deep_research/search_system.py@@ -150,7 +150,7 @@ class AdvancedSearchSystem:search=self.search,all_links_of_system=self.all_links_of_system,)- elif strategy_name.lower() == "source-based":+ elif strategy_name.lower() in ["source-based", "source_based"]:logger.info("Creating SourceBasedSearchStrategy instance")self.strategy = SourceBasedSearchStrategy(model=self.model,