~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: clarify PDM handles SQLCipher package selection automatically
LearningCircuit34ee74619018
diff --git a/docs/SQLCIPHER_INSTALL.md b/docs/SQLCIPHER_INSTALL.mdindex 44979408b8..3e297d9538 100644--- a/docs/SQLCIPHER_INSTALL.md+++ b/docs/SQLCIPHER_INSTALL.md@@ -13,17 +13,16 @@ sudo apt updatesudo apt install sqlcipher libsqlcipher-dev```-After installation, you can install the Python binding:+After installing SQLCipher, install the project with PDM:```bash-# For x86_64 (Intel/AMD)-pdm add sqlcipher3-binary-# For ARM64/aarch64-pdm add sqlcipher3-# or-pip install sqlcipher3-binary # x86_64-pip install sqlcipher3 # ARM64+pdm install```+PDM will automatically select the correct Python binding for your platform:+- x86_64 Linux: `sqlcipher3-binary` (pre-compiled wheel)+- ARM64 Linux: `sqlcipher3` (builds from source)+- Other platforms: `sqlcipher3`+### macOSInstall using Homebrew:@@ -32,11 +31,12 @@ Install using Homebrew:brew install sqlcipher```-You may need to set environment variables for the Python binding:+Then install the project with PDM:```bash+# May need to set environment variables for buildingexport LDFLAGS="-L$(brew --prefix sqlcipher)/lib"export CPPFLAGS="-I$(brew --prefix sqlcipher)/include"-pdm add sqlcipher3+pdm install```### Windows@@ -64,8 +64,8 @@ RUN apt-get update && apt-get install -y \gcc \&& rm -rf /var/lib/apt/lists/*-# Install Local Deep Research-RUN pip install local-deep-research sqlcipher3+# Install Local Deep Research (SQLCipher binding selected automatically)+RUN pip install local-deep-researchCMD ["ldr", "serve"]```@@ -133,7 +133,6 @@ if command -v brew &> /dev/null; thenbrew install sqlcipherfi-# Install Python package (handled automatically by PDM based on platform)-# For x86_64: sqlcipher3-binary will be installed-# For ARM64: sqlcipher3 will be installed+# Install Python package (PDM handles platform-specific dependencies automatically)+pdm install```diff --git a/src/local_deep_research/database/encrypted_db.py b/src/local_deep_research/database/encrypted_db.pyindex 3e91a5dba2..c848178942 100644--- a/src/local_deep_research/database/encrypted_db.py+++ b/src/local_deep_research/database/encrypted_db.py@@ -108,7 +108,7 @@ class DatabaseManager:"Your databases will NOT be encrypted.\n""To fix this:\n""1. Install SQLCipher: sudo apt install sqlcipher libsqlcipher-dev\n"- "2. Install Python binding: pip install sqlcipher3\n"+ "2. Reinstall project: pdm install\n""Or use Docker with SQLCipher pre-installed.\n\n""To explicitly allow unencrypted databases (NOT RECOMMENDED):\n""export LDR_ALLOW_UNENCRYPTED=true"diff --git a/src/local_deep_research/database/encryption_check.py b/src/local_deep_research/database/encryption_check.pyindex b6f6bf3415..b4e723dcbf 100644--- a/src/local_deep_research/database/encryption_check.py+++ b/src/local_deep_research/database/encryption_check.py@@ -37,7 +37,7 @@ def check_sqlcipher_available() -> Tuple[bool, Optional[str]]:if result.returncode == 0:return (False,- "SQLCipher is installed but Python bindings are missing. Run: pip install sqlcipher3",+ "SQLCipher is installed but Python bindings are missing. Reinstall the project with: pdm install",)except (subprocess.TimeoutExpired, FileNotFoundError):passdiff --git a/src/local_deep_research/database/sqlcipher_compat.py b/src/local_deep_research/database/sqlcipher_compat.pyindex 5cb944f80d..7aecd274f0 100644--- a/src/local_deep_research/database/sqlcipher_compat.py+++ b/src/local_deep_research/database/sqlcipher_compat.py@@ -28,5 +28,5 @@ def get_sqlcipher_module():except ImportError:raise ImportError("sqlcipher3 is not installed. "- "Install with: pip install sqlcipher3-binary (x86_64) or pip install sqlcipher3 (ARM64)"+ "Ensure SQLCipher system library is installed, then run: pdm install")diff --git a/src/local_deep_research/database/sqlcipher_utils.py b/src/local_deep_research/database/sqlcipher_utils.pyindex faae82273b..7580d9ff67 100644--- a/src/local_deep_research/database/sqlcipher_utils.py+++ b/src/local_deep_research/database/sqlcipher_utils.py@@ -229,7 +229,7 @@ def create_sqlcipher_connection(db_path: str, password: str) -> Any:except ImportError:raise ImportError("sqlcipher3 is not available for encrypted databases. "- "Install with: pip install sqlcipher3-binary (x86_64) or pip install sqlcipher3 (ARM64)"+ "Ensure SQLCipher system library is installed, then run: pdm install")conn = sqlcipher3.connect(str(db_path))