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.

chore: delete unused get_default_param_space() (#4152)

LearningCircuit42744d12541e
diff --git a/src/local_deep_research/benchmarks/optimization/api.py b/src/local_deep_research/benchmarks/optimization/api.py
index f20314b2dd..a35eb0013b 100644
--- a/src/local_deep_research/benchmarks/optimization/api.py
+++ b/src/local_deep_research/benchmarks/optimization/api.py
@@ -230,48 +230,3 @@ def optimize_for_efficiency(
progress_callback=progress_callback,
benchmark_weights=benchmark_weights,
)
-
-
-def get_default_param_space() -> Dict[str, Any]:
- """
- Get the default parameter search space for optimization.
-
- Returns:
- Dictionary defining the default parameter search spaces
- """
- return {
- "iterations": {
- "type": "int",
- "low": 1,
- "high": 5,
- "step": 1,
- },
- "questions_per_iteration": {
- "type": "int",
- "low": 1,
- "high": 5,
- "step": 1,
- },
- "search_strategy": {
- "type": "categorical",
- "choices": [
- "iterdrag",
- "standard",
- "rapid",
- "parallel",
- "source_based",
- ],
- },
- "max_results": {
- "type": "int",
- "low": 10,
- "high": 100,
- "step": 10,
- },
- "max_filtered_results": {
- "type": "int",
- "low": 5,
- "high": 50,
- "step": 5,
- },
- }
diff --git a/tests/benchmarks/test_optimization_api.py b/tests/benchmarks/test_optimization_api.py
index c6b1fbaa1b..8083503c3b 100644
--- a/tests/benchmarks/test_optimization_api.py
+++ b/tests/benchmarks/test_optimization_api.py
@@ -9,7 +9,6 @@ from unittest.mock import MagicMock, patch
from local_deep_research.benchmarks.optimization.api import (
- get_default_param_space,
optimize_for_efficiency,
optimize_for_quality,
optimize_for_speed,
@@ -242,61 +241,3 @@ class TestOptimizeForEfficiency:
assert "quality" in metrics
assert "speed" in metrics
assert "resource" in metrics
-
-
-class TestGetDefaultParamSpace:
- """Tests for the get_default_param_space function."""
-
- def test_returns_dict(self):
- """Function returns a dictionary."""
- result = get_default_param_space()
- assert isinstance(result, dict)
-
- def test_contains_iterations_config(self):
- """Result contains iterations parameter configuration."""
- result = get_default_param_space()
- assert "iterations" in result
- assert result["iterations"]["type"] == "int"
- assert "low" in result["iterations"]
- assert "high" in result["iterations"]
-
- def test_contains_questions_per_iteration_config(self):
- """Result contains questions_per_iteration parameter configuration."""
- result = get_default_param_space()
- assert "questions_per_iteration" in result
- assert result["questions_per_iteration"]["type"] == "int"
-
- def test_contains_search_strategy_config(self):
- """Result contains search_strategy parameter configuration."""
- result = get_default_param_space()
- assert "search_strategy" in result
- assert result["search_strategy"]["type"] == "categorical"
- assert "choices" in result["search_strategy"]
- # Should have multiple strategy options
- assert len(result["search_strategy"]["choices"]) > 1
-
- def test_contains_max_results_config(self):
- """Result contains max_results parameter configuration."""
- result = get_default_param_space()
- assert "max_results" in result
- assert result["max_results"]["type"] == "int"
-
- def test_contains_max_filtered_results_config(self):
- """Result contains max_filtered_results parameter configuration."""
- result = get_default_param_space()
- assert "max_filtered_results" in result
- assert result["max_filtered_results"]["type"] == "int"
-
- def test_iterations_range_is_reasonable(self):
- """Iterations should have a reasonable range (1-5)."""
- result = get_default_param_space()
- assert result["iterations"]["low"] >= 1
- assert result["iterations"]["high"] <= 10
-
- def test_search_strategies_include_common_options(self):
- """Search strategies should include common options."""
- result = get_default_param_space()
- strategies = result["search_strategy"]["choices"]
- # Check for some expected strategies
- assert "rapid" in strategies
- assert "standard" in strategies