{
 "schema_version": 1,
 "generated": "2026-11-09",
 "id": "learningcircuit-local-deep-research--call-local-deep-research-from-python",
 "repo": "LearningCircuit/local-deep-research",
 "repo_url": "https://github.com/LearningCircuit/local-deep-research",
 "repo_slug": "learningcircuit-local-deep-research",
 "title": "Run research from a Python script",
 "page_title": "How to run research from a Python script with Local Deep Research",
 "summary": "Install the pip package and use quick_query or LDRClient to get research summaries in code.",
 "who": "A developer who wants research summaries inside a pipeline.",
 "problem": "Running research by hand in a UI does not scale to many questions.",
 "outcome": "Research summaries returned as Python values for each question.",
 "steps": [
  "Install with `pip install local-deep-research`",
  "Start the server with `python -m local_deep_research.web.app` and create a user",
  "Call quick_query with your username, password and question, as in the README",
  "Or create an LDRClient, log in and call quick_research"
 ],
 "agent_prompt": "Using LearningCircuit/local-deep-research, install `pip install local-deep-research`, start it with `python -m local_deep_research.web.app`, then write a script that runs quick_research for each question in <my list> and saves the summaries.",
 "agents": [
  "claude-code",
  "codex",
  "cursor",
  "gemini-cli"
 ],
 "difficulty": "Intermediate",
 "time": "45 minutes",
 "basis": "readme",
 "caveat": "You need Ollama or another LLM endpoint and SearXNG running for full results.",
 "category": "Research",
 "tags": [
  "Research"
 ],
 "lang": "python",
 "requirements": [
  "Docker, or Python with pip",
  "Ollama or another OpenAI compatible LLM endpoint",
  "SearXNG for web search"
 ],
 "risk": "none",
 "seen_in_the_wild": false,
 "mentioned_publicly": false,
 "risks": [],
 "best": false,
 "score": 0.9,
 "evidence": [],
 "url": "https://dedupedai.com/use-cases/learningcircuit-local-deep-research/call-local-deep-research-from-python/",
 "md": "https://dedupedai.com/use-cases/learningcircuit-local-deep-research/call-local-deep-research-from-python/index.md",
 "disclaimer": "Deduped lists open-source repositories that belong to other people. We do not own, maintain, audit, or vouch for any of them, and a repo appearing here is not an endorsement or a safety check. The use cases, steps, and prompts are written by AI and may be incomplete, outdated, or just wrong. Where a use case is marked \"Seen in the wild\", we link to public posts where someone described something similar, but we have not verified those posts and the use case itself is still our AI's own write-up. Use all of this at your own risk. Only run code, commands, or agents on systems and accounts you are authorized to use, and read the code and every command before you run it, especially anything that touches credentials, files, or the network. Nothing here is professional, security, legal, or financial advice. All trademarks and project names belong to their respective owners, and their use here does not imply affiliation. Content is provided as is, without warranties of any kind. Found a mistake, a safety problem, or something you want removed? Email hello@dedupedai.com and we will look at it promptly.",
 "api": "https://dedupedai.com/api/v1/usecases/learningcircuit-local-deep-research--call-local-deep-research-from-python.json",
 "api_version": "v1"
}
