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.

feat: Add YAML download button for benchmark results and improve search engine visibility

LearningCircuit5debada032de
diff --git a/community_benchmark_results/COMMON_ISSUES.md b/community_benchmark_results/COMMON_ISSUES.md
index bd9ce6c054..d9aa266f3b 100644
--- a/community_benchmark_results/COMMON_ISSUES.md
+++ b/community_benchmark_results/COMMON_ISSUES.md
@@ -29,6 +29,7 @@ This guide documents known issues that can affect benchmark results and how to a
- **Solutions**:
- Reduce questions per iteration
- Use your own SearXNG instance with appropriate limits
+ - Check SearXNG health in Settings → Search Engines before benchmarking
- Consider alternative search engines for high-volume testing
### 2. Search Provider Limitations
@@ -91,8 +92,8 @@ This guide documents known issues that can affect benchmark results and how to a
### 3. Fair Comparisons
- Test both strategies when possible
-- Use the same question set across models
-- Include all relevant configuration details
+- The benchmarking tool automatically selects questions for consistency
+- Include all relevant configuration details in your submission
### 4. Resource Monitoring
```bash
diff --git a/community_benchmark_results/README.md b/community_benchmark_results/README.md
index 03e530010c..e9604c1c47 100644
--- a/community_benchmark_results/README.md
+++ b/community_benchmark_results/README.md
@@ -4,11 +4,19 @@ This directory contains community-contributed benchmark results for various LLMs
## Contributing Your Results
+### Easy Method (v0.6.0+)
+1. Run benchmarks using the LDR web interface at `/benchmark`
+2. Go to Benchmark Results page
+3. Click the green "YAML" button next to your completed benchmark
+4. Review the downloaded file and add any missing info (hardware specs are optional)
+5. Submit a PR to add your file to this directory
+
+### Manual Method
1. Run benchmarks using the LDR web interface at `/benchmark`
2. Copy `benchmark_template.yaml` to a new file named: `[model_name]_[date].yaml`
- Example: `llama3.3-70b-q4_2025-01-23.yaml`
- Optional: Include your username: `johnsmith_llama3.3-70b-q4_2025-01-23.yaml`
-3. Fill in your results
+3. Fill in your results manually
4. Submit a PR to add your file to this directory
## Important Guidelines
diff --git a/community_benchmark_results/benchmark_template.yaml b/community_benchmark_results/benchmark_template.yaml
index 4685ce260e..e37e727c0b 100644
--- a/community_benchmark_results/benchmark_template.yaml
+++ b/community_benchmark_results/benchmark_template.yaml
@@ -7,6 +7,11 @@ model: # e.g., Llama-3.3-70B-Q4_K_M
model_provider: # ollama, llamacpp, vllm, etc.
quantization: # e.g., Q4_K_M, Q5_K_S, FP16, etc.
+# Search Engine (critical for benchmark reproducibility)
+search_engine: # e.g., searxng, tavily, duckduckgo, google
+search_provider_version: # if known, e.g., "latest", "2024.1.0"
+average_results_per_query: # optional, e.g., 10
+
# Hardware
hardware:
gpu: # e.g., RTX 4090 24GB, 2x A100 80GB
@@ -48,8 +53,8 @@ versions:
# Test Details
test_details:
date_tested: # YYYY-MM-DD
- search_engine: # e.g., searxng, tavily
rate_limiting_issues: # yes/no
+ search_failures: # number of failed searches, if any
# Notes
notes: |
diff --git a/src/local_deep_research/web/templates/pages/benchmark_results.html b/src/local_deep_research/web/templates/pages/benchmark_results.html
index 9715467527..8f5fe5f7d8 100644
--- a/src/local_deep_research/web/templates/pages/benchmark_results.html
+++ b/src/local_deep_research/web/templates/pages/benchmark_results.html
@@ -6,6 +6,7 @@
{% block extra_head %}
<meta name="csrf-token" content="{{ csrf_token() }}">
+<meta name="app-version" content="{{ version }}">
<style>
.benchmark-results-card {
width: 100%;
@@ -769,14 +770,21 @@ function createRunCard(run) {
<div class="summary-label">Avg Time/Question</div>
</div>
<div class="summary-item">
- ${status === 'in_progress' ?
- `<button class="btn btn-outline btn-sm delete-btn" onclick="event.stopPropagation(); cancelAndDeleteBenchmarkRun(${run.id})" style="background: #3a1e1e !important; border-color: #f44336 !important; color: #f44336 !important;">
- <i class="fas fa-stop"></i> Cancel & Delete
- </button>` :
- `<button class="btn btn-outline btn-sm delete-btn" onclick="event.stopPropagation(); deleteBenchmarkRun(${run.id})">
- <i class="fas fa-trash"></i> Delete
- </button>`
- }
+ <div style="display: flex; gap: 8px;">
+ ${status === 'completed' ?
+ `<button class="btn btn-outline btn-sm" onclick="event.stopPropagation(); downloadBenchmarkYAML(${run.id})" style="background: #1e3a1e !important; border-color: #4caf50 !important; color: #4caf50 !important;">
+ <i class="fas fa-download"></i> YAML
+ </button>` : ''
+ }
+ ${status === 'in_progress' ?
+ `<button class="btn btn-outline btn-sm delete-btn" onclick="event.stopPropagation(); cancelAndDeleteBenchmarkRun(${run.id})" style="background: #3a1e1e !important; border-color: #f44336 !important; color: #f44336 !important;">
+ <i class="fas fa-stop"></i> Cancel & Delete
+ </button>` :
+ `<button class="btn btn-outline btn-sm delete-btn" onclick="event.stopPropagation(); deleteBenchmarkRun(${run.id})">
+ <i class="fas fa-trash"></i> Delete
+ </button>`
+ }
+ </div>
<div class="summary-label">Actions</div>
</div>
</div>
@@ -1061,6 +1069,136 @@ async function cancelAndDeleteBenchmarkRun(runId) {
}
}
+async function downloadBenchmarkYAML(runId) {
+ try {
+ // Find the run in our local data
+ const run = benchmarkRuns.find(r => r.id === runId);
+ if (!run) {
+ showAlert('Benchmark run not found', 'error');
+ return;
+ }
+
+ // Get current date for filename
+ const date = new Date().toISOString().split('T')[0];
+
+ // Get app version from meta tag
+ const appVersion = document.querySelector('meta[name="app-version"]')?.content || 'Could not fetch version';
+
+ // Extract model name and clean it for filename
+ const modelName = run.search_config?.model_name || 'unknown-model';
+ const cleanModelName = modelName.replace(/[^a-zA-Z0-9.-]/g, '-').toLowerCase();
+
+ // Get all relevant settings from database
+ let localContextWindow = 'Could not fetch';
+ let maxTokens = 'Could not fetch';
+ let contextWindowUnrestricted = 'Could not fetch';
+ let contextWindowSize = 'Could not fetch';
+ let supportsMaxTokens = 'Could not fetch';
+
+ try {
+ const settingsResponse = await fetch('/settings/api');
+ if (settingsResponse.ok) {
+ const data = await settingsResponse.json();
+ if (data.status === 'success' && data.settings) {
+ const settings = data.settings;
+ // LLM settings - extract the 'value' property from each setting object
+ localContextWindow = settings['llm.local_context_window_size']?.value || 'Could not fetch';
+ maxTokens = settings['llm.max_tokens']?.value || 'Could not fetch';
+ contextWindowUnrestricted = settings['llm.context_window_unrestricted']?.value !== undefined ?
+ (settings['llm.context_window_unrestricted'].value ? 'Yes' : 'No') : 'Could not fetch';
+ contextWindowSize = settings['llm.context_window_size']?.value || 'Could not fetch';
+ supportsMaxTokens = settings['llm.supports_max_tokens']?.value !== undefined ?
+ (settings['llm.supports_max_tokens'].value ? 'Yes' : 'No') : 'Could not fetch';
+ }
+ }
+ } catch (e) {
+ console.error('Could not fetch current settings:', e);
+ }
+
+ // Calculate average search results if available
+ const avgSearchResults = formatAvgSearchResults(run).replace(' results', '');
+ const searchResultsNum = avgSearchResults !== 'N/A' ? avgSearchResults : '# Please fill in';
+
+ // Generate YAML content
+ const yamlContent = `# Benchmark Result
+# Generated from Local Deep Research v${appVersion}
+# Date: ${date}
+
+# Model Information
+model: ${modelName}
+model_provider: ${run.search_config?.provider || 'unknown'}
+quantization: # Please fill in if applicable
+
+# Search Engine (critical for benchmark reproducibility)
+search_engine: ${run.search_config?.search_tool || 'unknown'}
+search_provider_version: # if known, e.g., "latest", "2024.1.0"
+average_results_per_query: ${searchResultsNum}
+
+# Hardware
+hardware:
+ gpu: # Please fill in
+ ram: # Please fill in
+ cpu: # Please fill in
+
+# Benchmark Results
+results:
+ dataset: SimpleQA
+ total_questions: ${run.total_examples}
+
+ ${run.search_config?.search_strategy === 'focused_iteration' ? 'focused_iteration' : 'source_based'}:
+ accuracy: ${run.overall_accuracy ? run.overall_accuracy.toFixed(1) : 0}% (${Math.round(run.overall_accuracy * run.total_examples / 100)}/${run.total_examples})
+ iterations: ${run.search_config?.iterations || 'N/A'}
+ questions_per_iteration: ${run.search_config?.questions_per_iteration || 'N/A'}
+ avg_time_per_question: ${formatAvgProcessingTime(run)}
+ total_tokens_used: # if available
+
+# Configuration
+configuration:
+ context_window: ${localContextWindow} # Current setting at download time - may differ from benchmark run
+ temperature: ${run.search_config?.temperature || 'N/A'}
+ max_tokens: ${maxTokens} # Current setting at download time
+ local_provider_context_window_size: ${localContextWindow} # Current setting at download time
+ context_window_unrestricted: ${contextWindowUnrestricted} # Current setting at download time
+
+# Versions
+versions:
+ ldr_version: ${appVersion}
+ ollama_version: # if applicable
+
+# Test Details
+test_details:
+ date_tested: ${date}
+ rate_limiting_issues: # yes/no
+ search_failures: # number of failed searches, if any
+
+# Notes
+notes: |
+ # Add any observations, errors, or insights here
+ # Search strategy: ${run.search_config?.search_strategy || 'unknown'}
+ # Provider: ${run.search_config?.provider || 'unknown'}
+ # Note: Configuration values are from current settings at download time,
+ # not necessarily the values used during the benchmark run
+`;
+
+ // Create blob and download
+ const blob = new Blob([yamlContent], { type: 'text/yaml' });
+ const url = window.URL.createObjectURL(blob);
+ const a = document.createElement('a');
+ a.style.display = 'none';
+ a.href = url;
+ a.download = `${cleanModelName}_${date}.yaml`;
+ document.body.appendChild(a);
+ a.click();
+ window.URL.revokeObjectURL(url);
+ document.body.removeChild(a);
+
+ showAlert('Benchmark YAML downloaded! Hardware details are optional but helpful for performance context.', 'success');
+ } catch (error) {
+ console.error('Error downloading YAML:', error);
+ showAlert('Error downloading YAML: ' + error.message, 'error');
+ }
+}
+
async function deleteBenchmarkRun(runId) {
try {
const response = await fetch(`/benchmark/api/delete/${runId}`, {