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: address PR review feedback for xbench-DeepSearch integration

LearningCircuit1a3b62d88f9f
diff --git a/src/local_deep_research/benchmarks/benchmark_functions.py b/src/local_deep_research/benchmarks/benchmark_functions.py
index ba8d59a4af..c7af62330f 100644
--- a/src/local_deep_research/benchmarks/benchmark_functions.py
+++ b/src/local_deep_research/benchmarks/benchmark_functions.py
@@ -17,6 +17,7 @@ from ..benchmarks import (
run_benchmark,
run_browsecomp_benchmark,
run_simpleqa_benchmark,
+ run_xbench_deepsearch_benchmark,
)
@@ -90,11 +91,11 @@ def evaluate_simpleqa(
evaluation_config["model_name"] = evaluation_model
if evaluation_provider:
evaluation_config["provider"] = evaluation_provider
- # Add OpenRouter URL if using openai_endpoint
- if evaluation_provider == "openai_endpoint":
- evaluation_config["openai_endpoint_url"] = (
- "https://openrouter.ai/api/v1"
- )
+ # Add endpoint URL if using openai_endpoint
+ if evaluation_provider == "openai_endpoint" and endpoint_url:
+ evaluation_config["openai_endpoint_url"] = endpoint_url
+ elif evaluation_provider == "openai_endpoint" and env_url:
+ evaluation_config["openai_endpoint_url"] = env_url
# Run the benchmark
results = run_simpleqa_benchmark(
@@ -178,11 +179,11 @@ def evaluate_browsecomp(
evaluation_config["model_name"] = evaluation_model
if evaluation_provider:
evaluation_config["provider"] = evaluation_provider
- # Add OpenRouter URL if using openai_endpoint
- if evaluation_provider == "openai_endpoint":
- evaluation_config["openai_endpoint_url"] = (
- "https://openrouter.ai/api/v1"
- )
+ # Add endpoint URL if using openai_endpoint
+ if evaluation_provider == "openai_endpoint" and endpoint_url:
+ evaluation_config["openai_endpoint_url"] = endpoint_url
+ elif evaluation_provider == "openai_endpoint" and env_url:
+ evaluation_config["openai_endpoint_url"] = env_url
# Run the benchmark
results = run_browsecomp_benchmark(
@@ -234,9 +235,6 @@ def evaluate_xbench_deepsearch(
f"Starting xbench-DeepSearch benchmark with {num_examples} examples"
)
- # Import the runner
- from ..benchmarks import run_xbench_deepsearch_benchmark
-
# Set up search configuration
search_config = {
"iterations": search_iterations,
@@ -271,11 +269,11 @@ def evaluate_xbench_deepsearch(
evaluation_config["model_name"] = evaluation_model
if evaluation_provider:
evaluation_config["provider"] = evaluation_provider
- # Add OpenRouter URL if using openai_endpoint
- if evaluation_provider == "openai_endpoint":
- evaluation_config["openai_endpoint_url"] = (
- "https://openrouter.ai/api/v1"
- )
+ # Add endpoint URL if using openai_endpoint
+ if evaluation_provider == "openai_endpoint" and endpoint_url:
+ evaluation_config["openai_endpoint_url"] = endpoint_url
+ elif evaluation_provider == "openai_endpoint" and env_url:
+ evaluation_config["openai_endpoint_url"] = env_url
# Run the benchmark
results = run_xbench_deepsearch_benchmark(