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: Remove env var usage from benchmarks and apply formatting

LearningCircuitd01586385097
diff --git a/src/local_deep_research/benchmarks/comparison/results.py b/src/local_deep_research/benchmarks/comparison/results.py
index ba30a74bf7..54a8a6c561 100644
--- a/src/local_deep_research/benchmarks/comparison/results.py
+++ b/src/local_deep_research/benchmarks/comparison/results.py
@@ -1,15 +1,10 @@
import json
-import os
class Benchmark_results:
def __init__(self, results_file=None):
- # Allow results file to be set via argument, environment variable, or default
- self.results_file = (
- results_file
- or os.environ.get("BENCHMARK_RESULTS_FILE")
- or "benchmark_results.json"
- )
+ # Allow results file to be set via argument or use default
+ self.results_file = results_file or "benchmark_results.json"
self.results = self._load_results()
def add_result(
@@ -52,13 +47,16 @@ class Benchmark_results:
# Validate that sort_by is a valid key in the result dictionaries
if self.results:
if sort_by not in self.results[0]:
- raise ValueError(f"Invalid sort_by key: '{sort_by}'. Valid keys are: {list(self.results[0].keys())}")
+ raise ValueError(
+ f"Invalid sort_by key: '{sort_by}'. Valid keys are: {list(self.results[0].keys())}"
+ )
if sort_by == "avg_time_per_question":
return sorted(
self.results, key=lambda x: x["avg_time_per_question"]
)
else:
return sorted(self.results, key=lambda x: x[sort_by], reverse=True)
+
def _load_results(self):
# Load results from file