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.

Update src/local_deep_research/benchmarks/comparison/results.py

Devansh KMb41d51a21232
diff --git a/src/local_deep_research/benchmarks/comparison/results.py b/src/local_deep_research/benchmarks/comparison/results.py
index 53fd940a7e..f7bada980a 100644
--- a/src/local_deep_research/benchmarks/comparison/results.py
+++ b/src/local_deep_research/benchmarks/comparison/results.py
@@ -43,13 +43,16 @@ class Benchmark_results:
def get_best(self, sort_by="accuracy_focused"):
"""get best performing models"""
+ # 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())}")
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