~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 environment variables and enhance logging in benchmark script. (#430)
Daniel Petti0e16fa993660
diff --git a/examples/benchmarks/run_resumable_parallel_benchmark.py b/examples/benchmarks/run_resumable_parallel_benchmark.pyindex 7ed173ef3b..17e39eda1d 100644--- a/examples/benchmarks/run_resumable_parallel_benchmark.py+++ b/examples/benchmarks/run_resumable_parallel_benchmark.py@@ -44,6 +44,8 @@ project_root = os.path.abspath(os.path.dirname(os.path.dirname(os.path.dirname(__file__))))+logger.enable("local_deep_research")+def load_existing_results(results_file: str) -> Dict[str, Dict]:"""Load existing results from JSONL file."""@@ -340,29 +342,30 @@ def setup_llm_environment():"""Set up environment variables for LLM configuration."""if model:- os.environ["LDR_LLM__MODEL"] = model+ os.environ["LDR_LLM_MODEL"] = modellogger.info(f"Using LLM model: {model}")if provider:- os.environ["LDR_LLM__PROVIDER"] = provider+ os.environ["LDR_LLM_PROVIDER"] = providerlogger.info(f"Using LLM provider: {provider}")if endpoint_url:os.environ["OPENAI_ENDPOINT_URL"] = endpoint_url- os.environ["LDR_LLM__OPENAI_ENDPOINT_URL"] = endpoint_url+ os.environ["LDR_LLM_OPENAI_ENDPOINT_URL"] = endpoint_url+ os.environ["LDR_LLM_OLLAMA_URL"] = endpoint_urllogger.info(f"Using endpoint URL: {endpoint_url}")if api_key:# Set the appropriate environment variable based on providerif provider == "openai":os.environ["OPENAI_API_KEY"] = api_key- os.environ["LDR_LLM__OPENAI_API_KEY"] = api_key+ os.environ["LDR_LLM_OPENAI_API_KEY"] = api_keyelif provider == "openai_endpoint":os.environ["OPENAI_ENDPOINT_API_KEY"] = api_key- os.environ["LDR_LLM__OPENAI_ENDPOINT_API_KEY"] = api_key+ os.environ["LDR_LLM_OPENAI_ENDPOINT_API_KEY"] = api_keyelif provider == "anthropic":os.environ["ANTHROPIC_API_KEY"] = api_key- os.environ["LDR_LLM__ANTHROPIC_API_KEY"] = api_key+ os.environ["LDR_LLM_ANTHROPIC_API_KEY"] = api_keylogger.info("API key configured")