~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(benchmark): remove artificial sample count caps from UI and API (#4080)
LearningCircuita3b48a3dc021
diff --git a/src/local_deep_research/benchmarks/web_api/benchmark_routes.py b/src/local_deep_research/benchmarks/web_api/benchmark_routes.pyindex c849aa2e5d..8740bbc5b3 100644--- a/src/local_deep_research/benchmarks/web_api/benchmark_routes.py+++ b/src/local_deep_research/benchmarks/web_api/benchmark_routes.py@@ -913,11 +913,6 @@ def validate_config():if total_examples == 0:errors.append("Total examples must be greater than 0")- if total_examples > 1000:- errors.append(- "Total examples should not exceed 1000 for web interface"- )-return jsonify({"valid": len(errors) == 0,diff --git a/src/local_deep_research/web/templates/pages/benchmark.html b/src/local_deep_research/web/templates/pages/benchmark.htmlindex e8843c560a..f27ad90491 100644--- a/src/local_deep_research/web/templates/pages/benchmark.html+++ b/src/local_deep_research/web/templates/pages/benchmark.html@@ -80,7 +80,7 @@<label for="simpleqa_count">Number of Examples</label><input type="number" id="simpleqa_count"name="simpleqa_count" value="50"- min="1" max="500"+ min="1"class="ldr-form-control"><span class="ldr-input-help">Recommended: 50 examples provides good balance for configuration testing</span></div>@@ -105,7 +105,7 @@<label for="xbench_deepsearch_count">Number of Examples</label><input type="number" id="xbench_deepsearch_count"name="xbench_deepsearch_count" value="10"- min="1" max="100"+ min="1"class="ldr-form-control" disabled><span class="ldr-input-help">100 challenging research questions available</span></div>@@ -119,7 +119,7 @@<p>Complex browsing and comparison tasks</p><div class="ldr-dataset-danger-notice"><i aria-hidden="true" class="fas fa-exclamation-triangle"></i> <strong>Poor Performance Warning:</strong> We currently achieve close to 0% accuracy on BrowseComp.- <br><strong>For testing only:</strong> Limited to 20 examples max to see what this benchmark is about.+ <br><strong>For testing only:</strong> Intended for curiosity testing to see what this benchmark is about.</div></div><div class="ldr-dataset-toggle">@@ -128,12 +128,12 @@</div></div><div class="ldr-form-group">- <label for="browsecomp_count">Number of Examples (Max 20)</label>+ <label for="browsecomp_count">Number of Examples</label><input type="number" id="browsecomp_count"name="browsecomp_count" value="0"- min="0" max="20"+ min="0"class="ldr-form-control" disabled>- <span class="ldr-input-help ldr-text-error">Restricted to max 20 examples due to poor performance - for curiosity testing only</span>+ <span class="ldr-input-help ldr-text-error">Warning: Expect poor performance - for curiosity testing only</span></div></div></fieldset>diff --git a/src/local_deep_research/web/templates/pages/benchmark_simple.html b/src/local_deep_research/web/templates/pages/benchmark_simple.htmlindex 197f3b5a73..0ab55068c6 100644--- a/src/local_deep_research/web/templates/pages/benchmark_simple.html+++ b/src/local_deep_research/web/templates/pages/benchmark_simple.html@@ -157,7 +157,7 @@<h4>SimpleQA</h4><p>Fact-based questions with clear answers</p></div>- <input type="number" id="simpleqa_count" value="20" min="1" max="500">+ <input type="number" id="simpleqa_count" value="20" min="1"></div><div class="ldr-dataset-option ldr-selected" data-dataset="browsecomp">@@ -165,7 +165,7 @@<h4>BrowseComp</h4><p>Complex browsing and comparison tasks</p></div>- <input type="number" id="browsecomp_count" value="10" min="1" max="200">+ <input type="number" id="browsecomp_count" value="10" min="1"></div></div>diff --git a/tests/benchmarks/web_api/test_benchmark_routes.py b/tests/benchmarks/web_api/test_benchmark_routes.pyindex f2fc4d26f9..ebddbf5443 100644--- a/tests/benchmarks/web_api/test_benchmark_routes.py+++ b/tests/benchmarks/web_api/test_benchmark_routes.py@@ -307,8 +307,8 @@ class TestValidateConfig:assert callable(validate_config)- def test_validate_config_exceeds_1000_examples(self):- """Test that more than 1000 examples triggers error."""+ def test_validate_config_no_example_count_cap(self):+ """Test that validate_config is callable (no artificial cap on examples)."""from local_deep_research.benchmarks.web_api.benchmark_routes import (validate_config,)@@ -741,8 +741,8 @@ class TestBenchmarkPageRoutes:class TestStartBenchmarkValidation:"""Extended tests for start benchmark validation."""- def test_start_benchmark_validates_total_count(self):- """Test that total examples count is validated."""+ def test_start_benchmark_with_large_count(self):+ """Test that large example counts are accepted (no artificial cap)."""from flask import Flaskfrom local_deep_research.benchmarks.web_api.benchmark_routes import (benchmark_bp,@@ -753,7 +753,6 @@ class TestStartBenchmarkValidation:app.register_blueprint(benchmark_bp)with app.test_client() as client:- # More than 1000 examples should trigger validationresponse = client.post("/benchmark/api/start",json={diff --git a/tests/benchmarks/web_api/test_benchmark_routes_coverage.py b/tests/benchmarks/web_api/test_benchmark_routes_coverage.pyindex c610e6aaa3..766f2e86fe 100644--- a/tests/benchmarks/web_api/test_benchmark_routes_coverage.py+++ b/tests/benchmarks/web_api/test_benchmark_routes_coverage.py@@ -1300,7 +1300,8 @@ class TestValidateConfig:data = resp.get_json()assert data["valid"] is False- def test_validate_exceeds_max(self):+ def test_validate_large_count_accepted(self):+ """Large example counts should pass validation (no artificial cap)."""app = _make_app()with _patch_auth_and_db() as (mock_svc, mgr, _):with app.test_client() as client:@@ -1317,8 +1318,8 @@ class TestValidateConfig:},)data = resp.get_json()- assert data["valid"] is False- assert any("1000" in e for e in data["errors"])+ assert data["valid"] is True+ assert data["total_examples"] == 1001def test_validate_datasets_config_with_non_dict_values(self):"""datasets_config with valid structure but non-integer count."""