~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
docs: move detailed install instructions from README to dedicated pages (#2819)
LearningCircuitabbd19584aac
diff --git a/README.md b/README.mdindex 7baaf99723..b1560926b9 100644--- a/README.md+++ b/README.md@@ -219,216 +219,16 @@ cosign verify localdeepresearch/local-deep-research:latest## 📦 Installation Options-### Option 1: Docker+For most users, the [Quick Start](#-quick-start) above is all you need.-```bash-# Step 1: Pull and run SearXNG for optimal search results-docker run -d -p 8080:8080 --name searxng searxng/searxng--# Step 2: Pull and run Local Deep Research-docker run -d -p 5000:5000 --network host \- --name local-deep-research \- --volume 'deep-research:/data' \- -e LDR_DATA_DIR=/data \- localdeepresearch/local-deep-research-```--### Option 2: Docker Compose (Recommended)--LDR uses Docker compose to bundle the web app and all its dependencies so-you can get up and running quickly.--#### Option 2a: Quick Start (One Command)--**Default: CPU-only base (works on all platforms)**--The base configuration works on macOS (M1/M2/M3/M4 and Intel), Windows, and Linux without requiring any GPU hardware.--**Quick Start Command:**--**Note:** `curl -O` will overwrite existing docker-compose.yml files in the current directory.--Linux/macOS:--```bash-curl -O https://raw.githubusercontent.com/LearningCircuit/local-deep-research/main/docker-compose.yml && docker compose up -d-```--Windows (PowerShell required):--```powershell-curl.exe -O https://raw.githubusercontent.com/LearningCircuit/local-deep-research/main/docker-compose.yml-if ($?) { docker compose up -d }-```--Or install natively without Docker — see [Option 3: Python Package](#option-3-python-package-pip).--**Use with a different model:**--```bash-curl -O https://raw.githubusercontent.com/LearningCircuit/local-deep-research/main/docker-compose.yml && MODEL=gpt-oss:20b docker compose up -d-```-------##### **Option 2a-GPU: Add NVIDIA GPU Acceleration (Linux only)**--For users with NVIDIA GPUs who want hardware acceleration.--**Prerequisites:**--Install the NVIDIA Container Toolkit first (Ubuntu/Debian):--```bash-# Install NVIDIA Container Toolkit (for GPU support)-curl -fsSL https://nvidia.github.io/libnvidia-container/gpgkey | sudo gpg --dearmor -o /usr/share/keyrings/nvidia-container-toolkit-keyring.gpg \- && curl -s -L https://nvidia.github.io/libnvidia-container/stable/deb/nvidia-container-toolkit.list | \- sed 's#deb https://#deb [signed-by=/usr/share/keyrings/nvidia-container-toolkit-keyring.gpg] https://#g' | \- sudo tee /etc/apt/sources.list.d/nvidia-container-toolkit.list--sudo apt-get update-sudo apt-get install nvidia-container-toolkit -y-sudo systemctl restart docker--# Verify installation-nvidia-smi-```--**Verify:** The `nvidia-smi` command should display your GPU information. If it fails, check your NVIDIA driver installation.--**Note:** For RHEL/CentOS/Fedora, Arch, or other Linux distributions, see the [NVIDIA Container Toolkit installation guide](https://docs.nvidia.com/datacenter/cloud-native/container-toolkit/install-guide.html).--**Quick Start Commands:**--**Note:** `curl -O` will overwrite existing files in the current directory.--```bash-curl -O https://raw.githubusercontent.com/LearningCircuit/local-deep-research/main/docker-compose.yml && \-curl -O https://raw.githubusercontent.com/LearningCircuit/local-deep-research/main/docker-compose.gpu.override.yml && \-docker compose -f docker-compose.yml -f docker-compose.gpu.override.yml up -d-```--**Optional: Create an alias for convenience**--```bash-alias docker-compose-gpu='docker compose -f docker-compose.yml -f docker-compose.gpu.override.yml'-# Then simply use: docker-compose-gpu up -d-```-------Open http://localhost:5000 after ~30 seconds. This starts LDR with SearXNG and all dependencies.--#### Option 2b: DIY docker-compose-See [docker-compose.yml](./docker-compose.yml) for a docker-compose file with reasonable defaults to get up and running with ollama, searxng, and local deep research all running locally.--Things you may want/need to configure:-* Ollama GPU driver-* Ollama context length (depends on available VRAM)-* Ollama keep alive (duration model will stay loaded into VRAM and idle before getting unloaded automatically)-* Deep Research model (depends on available VRAM and preference)--#### Option 2c: Use Cookie Cutter to tailor a docker-compose to your needs:--##### Prerequisites--- [Docker](https://docs.docker.com/engine/install/)-- [Docker Compose](https://docs.docker.com/compose/install/)-- `cookiecutter`: Run `pip install --user cookiecutter`--Clone the repository:--```bash-git clone https://github.com/LearningCircuit/local-deep-research.git-cd local-deep-research-```--### Configuring with Docker Compose--Cookiecutter will interactively guide you through the process of creating a-`docker-compose` configuration that meets your specific needs. This is the-recommended approach if you are not very familiar with Docker.--In the LDR repository, run the following command-to generate the compose file:--```bash-cookiecutter cookiecutter-docker/-docker compose -f docker-compose.default.yml up-```--[Docker Compose Guide →](docs/docker-compose-guide.md)--### Option 3: Python Package (pip)--> **Note:** `pip install local-deep-research` works on Windows, macOS, and Linux. SQLCipher encryption is included via pre-built wheels — no compilation needed. Docker is still useful if you want Ollama + SearXNG bundled together.--```bash-# Step 1: Install the package-pip install local-deep-research--# Step 2: Setup SearXNG for best results-docker pull searxng/searxng-docker run -d -p 8080:8080 --name searxng searxng/searxng--# Step 3: Install Ollama from https://ollama.ai--# Step 4: Download a model-ollama pull gemma3:12b--# Step 5: Start the web interface-ldr-web-```--> **SQLCipher Note:** SQLCipher encryption is included via pre-built `sqlcipher3` wheels (Windows, macOS, Linux) — no compilation needed. If you encounter issues, set `export LDR_ALLOW_UNENCRYPTED=true` to use standard SQLite instead. See [SQLCipher Guide](docs/SQLCIPHER_INSTALL.md) for details.--> **Windows PDF Export:** PDF export requires Pango/Cairo system libraries. See [WeasyPrint installation guide](https://doc.courtbouillon.org/weasyprint/stable/first_steps.html) for setup.--> **Note:** For development from source, see the [Development Guide](docs/developing.md).--#### Optional Dependencies--VLLM support (for running transformer models directly):-```bash-pip install "local-deep-research[vllm]"-```-This installs torch, transformers, and vllm for advanced local model hosting. Most users running Ollama or LlamaCpp don't need this.--[Full Installation Guide →](https://github.com/LearningCircuit/local-deep-research/wiki/Installation)--### Option 4: Unraid--**For Unraid users:**--Local Deep Research is fully compatible with Unraid servers!--#### Quick Install (Template Method)--1. Navigate to **Docker** tab → **Docker Repositories**-2. Add template repository:- ```- https://github.com/LearningCircuit/local-deep-research- ```-3. Click **Add Container** → Select **LocalDeepResearch** from template-4. Configure paths (default: `/mnt/user/appdata/local-deep-research/`)-5. Click **Apply**--#### Docker Compose Manager Plugin--If you prefer using Docker Compose on Unraid:--1. Install "Docker Compose Manager" from Community Applications-2. Create a new stack with the compose file from this repo-3. Update volume paths to Unraid format (`/mnt/user/appdata/...`)--**Features on Unraid:**-- ✅ Pre-configured template with sensible defaults-- ✅ Automatic SearXNG and Ollama integration-- ✅ NVIDIA GPU passthrough support (optional)-- ✅ Integration with Unraid shares for document search-- ✅ Backup integration with CA Appdata Backup plugin+| Method | Best for | Guide |+|--------|----------|-------|+| Docker Compose | Most users (recommended) | [Docker Compose Guide](docs/docker-compose-guide.md) |+| Docker | Minimal setup | [Installation Guide](docs/installation.md#docker) |+| pip | Developers, Python integration | [pip Guide](docs/install-pip.md) |+| Unraid | Unraid servers | [Unraid Guide](docs/deployment/unraid.md) |-[Complete Unraid Setup Guide →](docs/deployment/unraid.md)+[All installation options →](docs/installation.md)## 💻 Usage Examples@@ -632,7 +432,7 @@ Track costs, performance, and usage with detailed metrics. [Learn more →](docs## 📚 Documentation### Getting Started-- [Installation Guide](https://github.com/LearningCircuit/local-deep-research/wiki/Installation)+- [Installation Guide](docs/installation.md)- [Frequently Asked Questions](docs/faq.md)- [API Quickstart](docs/api-quickstart.md)- [Configuration Guide](docs/env_configuration.md)diff --git a/docs/docker-compose-guide.md b/docs/docker-compose-guide.mdindex 3f3f3933b8..c80802d9c9 100644--- a/docs/docker-compose-guide.md+++ b/docs/docker-compose-guide.md@@ -22,7 +22,7 @@ curl -O https://raw.githubusercontent.com/LearningCircuit/local-deep-research/madocker compose -f docker-compose.yml -f docker-compose.gpu.override.yml up -d```-**Prerequisites for GPU:** Install the [NVIDIA Container Toolkit](https://docs.nvidia.com/datacenter/cloud-native/container-toolkit/install-guide.html) first. See the [README](../README.md#option-2a-gpu-add-nvidia-gpu-acceleration-linux-only) for detailed instructions.+**Prerequisites for GPU:** Install the [NVIDIA Container Toolkit](https://docs.nvidia.com/datacenter/cloud-native/container-toolkit/install-guide.html) first.Open http://localhost:5000 after ~30 seconds.@@ -187,7 +187,7 @@ docker compose down -v## Related Documentation-- [README - Full Installation Guide](../README.md#-installation-options)+- [Installation Guide](installation.md)- [Environment Configuration](env_configuration.md)- [Full Configuration Reference](CONFIGURATION.md)- [SearXNG Setup](SearXNG-Setup.md)diff --git a/docs/install-pip.md b/docs/install-pip.mdnew file mode 100644index 0000000000..d1769150d3--- /dev/null+++ b/docs/install-pip.md@@ -0,0 +1,58 @@+# Python Package (pip) Installation Guide++> **Note:** For most users, **Docker is preferred** as it handles all dependencies automatically. pip install is best suited for **developers** or users who want to integrate LDR into existing Python projects.++## Quick Install++```bash+# Step 1: Install the package+pip install local-deep-research++# Step 2: Setup SearXNG for best results+docker pull searxng/searxng+docker run -d -p 8080:8080 --name searxng searxng/searxng++# Step 3: Install Ollama from https://ollama.ai++# Step 4: Download a model+ollama pull gemma3:12b++# Step 5: Start the web interface+ldr-web+```++## SQLCipher (Database Encryption)++LDR uses SQLCipher for AES-256 encrypted databases. Pre-built `sqlcipher3` wheels are available for Windows, macOS, and Linux — most users won't need to compile anything.++- **Full setup instructions:** [SQLCipher Install Guide](SQLCIPHER_INSTALL.md)+- **Skip encryption:** If you don't need database encryption, set `export LDR_ALLOW_UNENCRYPTED=true` to use standard SQLite instead. API keys and data will be stored unencrypted.+- **Docker:** Includes SQLCipher out of the box — no extra setup needed.++## Optional Dependencies++### VLLM Support++For running transformer models directly (most users running Ollama or LlamaCpp don't need this):++```bash+pip install "local-deep-research[vllm]"+```++This installs torch, transformers, and vllm for advanced local model hosting.++### MCP Server++For integration with Claude Desktop or Claude Code:++```bash+pip install "local-deep-research[mcp]"+```++## Platform Notes++> **Windows PDF Export:** PDF export requires Pango/Cairo system libraries. See the [WeasyPrint installation guide](https://doc.courtbouillon.org/weasyprint/stable/first_steps.html) for setup instructions.++## Development from Source++For contributing or running from the latest code, see the [Development Guide](developing.md).diff --git a/docs/installation.md b/docs/installation.mdnew file mode 100644index 0000000000..be64ca95f5--- /dev/null+++ b/docs/installation.md@@ -0,0 +1,107 @@+# Installation++This page gives you copy-pasteable commands for every install method. For deeper configuration, follow the links to the dedicated guides.++## Docker Compose (Recommended)++The easiest way to get started. Bundles LDR, Ollama, and SearXNG in one command.++**CPU-only (all platforms):**++```bash+curl -O https://raw.githubusercontent.com/LearningCircuit/local-deep-research/main/docker-compose.yml && docker compose up -d+```++**With NVIDIA GPU (Linux only):**++Prerequisites — install the NVIDIA Container Toolkit (Ubuntu/Debian):++```bash+curl -fsSL https://nvidia.github.io/libnvidia-container/gpgkey | sudo gpg --dearmor -o /usr/share/keyrings/nvidia-container-toolkit-keyring.gpg \+ && curl -s -L https://nvidia.github.io/libnvidia-container/stable/deb/nvidia-container-toolkit.list | \+ sed 's#deb https://#deb [signed-by=/usr/share/keyrings/nvidia-container-toolkit-keyring.gpg] https://#g' | \+ sudo tee /etc/apt/sources.list.d/nvidia-container-toolkit.list++sudo apt-get update+sudo apt-get install nvidia-container-toolkit -y+sudo systemctl restart docker++# Verify installation+nvidia-smi+```++> **Note:** For RHEL/CentOS/Fedora, Arch, or other distributions, see the [NVIDIA Container Toolkit installation guide](https://docs.nvidia.com/datacenter/cloud-native/container-toolkit/install-guide.html).++Then start the stack:++```bash+curl -O https://raw.githubusercontent.com/LearningCircuit/local-deep-research/main/docker-compose.yml && \+curl -O https://raw.githubusercontent.com/LearningCircuit/local-deep-research/main/docker-compose.gpu.override.yml && \+docker compose -f docker-compose.yml -f docker-compose.gpu.override.yml up -d+```++**Optional alias for convenience:**++```bash+alias docker-compose-gpu='docker compose -f docker-compose.yml -f docker-compose.gpu.override.yml'+# Then simply use: docker-compose-gpu up -d+```++**Windows (PowerShell):**++```powershell+curl.exe -O https://raw.githubusercontent.com/LearningCircuit/local-deep-research/main/docker-compose.yml+if ($?) { docker compose up -d }+```++**Use a different model:**++```bash+curl -O https://raw.githubusercontent.com/LearningCircuit/local-deep-research/main/docker-compose.yml && MODEL=gpt-oss:20b docker compose up -d+```++Open http://localhost:5000 after ~30 seconds.++> **Note:** `curl -O` will overwrite existing docker-compose.yml files in the current directory.++**DIY docker-compose:** See [docker-compose.yml](../docker-compose.yml) for a compose file with reasonable defaults. Things you may want to configure: Ollama GPU driver, context length, keep alive duration, and model selection.++For Cookiecutter setup, environment variables, and troubleshooting, see the [Docker Compose Guide](docker-compose-guide.md).++## Docker++Run each container individually for a minimal setup:++```bash+# Step 1: Pull and run SearXNG for optimal search results+docker run -d -p 8080:8080 --name searxng searxng/searxng++# Step 2: Pull and run Ollama+docker run -d -p 11434:11434 --name ollama ollama/ollama+docker exec ollama ollama pull gpt-oss:20b++# Step 3: Pull and run Local Deep Research+docker run -d -p 5000:5000 --network host \+ --name local-deep-research \+ --volume 'deep-research:/data' \+ -e LDR_DATA_DIR=/data \+ localdeepresearch/local-deep-research+```++Open http://localhost:5000 after ~30 seconds.++## Python Package (pip)++Best for developers or users integrating LDR into existing Python projects.++```bash+pip install local-deep-research+```++For full setup (SearXNG, Ollama, SQLCipher, vllm extras), see the [pip Guide](install-pip.md).++## Unraid++Local Deep Research is available as a pre-configured template for Unraid servers with sensible defaults, automatic SearXNG/Ollama integration, and NVIDIA GPU passthrough support.++For full setup instructions, see the [Unraid Guide](deployment/unraid.md).