~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: use correct Serper API key settings path in E2E script
LearningCircuitc43941dda0cc
diff --git a/scripts/ldr-diff-research.py b/scripts/ldr-diff-research.pyindex 82cef8f9df..29bbdfd899 100755--- a/scripts/ldr-diff-research.py+++ b/scripts/ldr-diff-research.py@@ -39,6 +39,29 @@ import sysDEFAULT_STATIC_QUERY = "What is Local Deep Research and how does it work?"+def make_serializable(obj):+ """Convert objects to JSON-serializable format."""+ if obj is None:+ return None+ if isinstance(obj, (str, int, float, bool)):+ return obj+ if isinstance(obj, dict):+ return {k: make_serializable(v) for k, v in obj.items()}+ if isinstance(obj, (list, tuple)):+ return [make_serializable(item) for item in obj]+ # Handle LangChain Document objects+ if hasattr(obj, "page_content") and hasattr(obj, "metadata"):+ return {+ "content": obj.page_content,+ "metadata": make_serializable(obj.metadata),+ }+ # Handle other objects with __dict__+ if hasattr(obj, "__dict__"):+ return make_serializable(obj.__dict__)+ # Fallback to string representation+ return str(obj)++def parse_args():parser = argparse.ArgumentParser(description="Run LDR research on code diffs or static queries"@@ -156,7 +179,9 @@ Research topics to cover:"OPENROUTER_API_KEY"]if os.environ.get("SERPER_API_KEY"):- overrides["search.serper.api_key"] = os.environ["SERPER_API_KEY"]+ overrides["search.engine.web.serper.api_key"] = os.environ[+ "SERPER_API_KEY"+ ]settings = create_settings_snapshot(overrides=overrides)@@ -179,12 +204,12 @@ Research topics to cover:"summary", str(result))- # Build output - sources are already extracted by quick_summary+ # Build output - make sure everything is JSON serializableoutput = {"mode": args.mode,"research": research_output,- "sources": result.get("sources", []), # Already extracted by API- "findings": result.get("findings", []),+ "sources": make_serializable(result.get("sources", [])),+ "findings": make_serializable(result.get("findings", [])),"iterations": result.get("iterations", args.iterations),}