~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: Allow Ollama and local models to grade benchmark results
LearningCircuit04782b1f6f1b
diff --git a/src/local_deep_research/benchmarks/web_api/benchmark_service.py b/src/local_deep_research/benchmarks/web_api/benchmark_service.pyindex 86a84226d8..405d6ba767 100644--- a/src/local_deep_research/benchmarks/web_api/benchmark_service.py+++ b/src/local_deep_research/benchmarks/web_api/benchmark_service.py@@ -655,69 +655,51 @@ class BenchmarkService:# Evaluate result - requires proper grading modeltry:- # Check if we have a proper evaluation model configured- eval_provider = evaluation_config.get("provider", "").lower()- eval_model = evaluation_config.get("model_name", "")-- if (- eval_provider in ["ollama", "local"]- or "gemma" in eval_model.lower()- ):- # Local models are not reliable enough for grading+ # Always attempt evaluation, regardless of provider+ # Modern local models like Ollama are capable of grading+ # Try to evaluate with proper model+ result_data = {+ "id": task["example_id"],+ "problem": task["question"],+ "correct_answer": task["correct_answer"],+ "response": response,+ "extracted_answer": extracted_answer,+ }++ eval_result = grade_single_result(+ result_data,+ task["dataset_type"],+ evaluation_config,+ settings_context.snapshot,+ )+ if eval_result and not eval_result.get("grading_error"):result.update({- "is_correct": None,- "graded_confidence": "0",- "grader_response": "🔑 Evaluation requires OpenRouter API key. Set llm.openai_endpoint.api_key in database settings to use Claude 3.7 Sonnet for accurate grading via OpenRouter.",- "evaluation_error": "Local models not suitable for grading",+ "is_correct": eval_result.get("is_correct", False),+ "graded_confidence": eval_result.get(+ "graded_confidence", "0"+ ),+ "grader_response": eval_result.get(+ "grader_response", ""+ ),})else:- # Try to evaluate with proper model- result_data = {- "id": task["example_id"],- "problem": task["question"],- "correct_answer": task["correct_answer"],- "response": response,- "extracted_answer": extracted_answer,- }-- eval_result = grade_single_result(- result_data,- task["dataset_type"],- evaluation_config,- settings_context.snapshot,- )- if eval_result and not eval_result.get("grading_error"):- result.update(- {- "is_correct": eval_result.get(- "is_correct", False- ),- "graded_confidence": eval_result.get(- "graded_confidence", "0"- ),- "grader_response": eval_result.get(- "grader_response", ""- ),- }- )- else:- error_msg = (- eval_result.get(- "grading_error", "Unknown evaluation error"- )- if eval_result- else "No evaluation results returned"- )- result.update(- {- "is_correct": None,- "graded_confidence": "0",- "grader_response": f"🔑 Evaluation failed: {error_msg}. Set llm.openai_endpoint.api_key in database settings to use Claude 3.7 Sonnet via OpenRouter.",- "evaluation_error": error_msg,- }+ error_msg = (+ eval_result.get(+ "grading_error", "Unknown evaluation error")+ if eval_result+ else "No evaluation results returned"+ )+ result.update(+ {+ "is_correct": None,+ "graded_confidence": "0",+ "grader_response": f"Evaluation failed: {error_msg}",+ "evaluation_error": error_msg,+ }+ )except Exception as e:logger.exception("Evaluation error")@@ -725,7 +707,7 @@ class BenchmarkService:{"is_correct": None,"graded_confidence": "0",- "grader_response": f"🔑 Evaluation failed: {e!s}. Set llm.openai_endpoint.api_key in database settings to use Claude 3.7 Sonnet via OpenRouter.",+ "grader_response": f"Evaluation failed: {e!s}","evaluation_error": str(e),})