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.

fix(benchmark): use actual dataset + strategy in YAML export (#3442)

LearningCircuit6916112a3b7d
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 d61ac1cc62..6e9b1019f5 100644
--- a/src/local_deep_research/web/templates/pages/benchmark_results.html
+++ b/src/local_deep_research/web/templates/pages/benchmark_results.html
@@ -620,7 +620,14 @@ async function downloadBenchmarkYAML(runId, includeExamples = false) {
}
const avgSearchResults = formatAvgSearchResults(run).replace(' results', '');
- const strategy = run.search_config?.search_strategy === 'focused_iteration' ? 'focused_iteration' : 'source_based';
+ // Use actual strategy and dataset from the run, not hardcoded values.
+ // datasets_config is a dict like {"simpleqa": {"count": 100}, ...}
+ const strategy = run.search_config?.search_strategy;
+ const datasetKeys = run.datasets_config ? Object.keys(run.datasets_config) : [];
+ const dataset = datasetKeys.length > 0 ? datasetKeys[0] : 'unknown';
+ // Map canonical IDs to display names
+ const datasetDisplayNames = {simpleqa: 'SimpleQA', browsecomp: 'BrowseComp', xbench_deepsearch: 'xbench-DeepSearch'};
+ const datasetName = datasetDisplayNames[dataset] || dataset;
const correctCount = run.overall_accuracy ? Math.round(run.overall_accuracy * run.total_examples / 100) : 0;
// Generate compact YAML — data only, no empty placeholders
@@ -628,7 +635,7 @@ async function downloadBenchmarkYAML(runId, includeExamples = false) {
model_provider: ${run.search_config?.provider || 'unknown'}
search_engine: ${run.search_config?.search_tool || 'unknown'}
${avgSearchResults !== 'N/A' ? `average_results_per_query: ${avgSearchResults}\n` : ''}results:
- dataset: SimpleQA
+ dataset: ${datasetName}
total_questions: ${run.total_examples}
${strategy}:
accuracy: "${run.overall_accuracy ? run.overall_accuracy.toFixed(1) : 0}% (${correctCount}/${run.total_examples})"