~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 issue with connection pooling.
Daniel Petti7f246d8336ae
diff --git a/src/local_deep_research/database/encrypted_db.py b/src/local_deep_research/database/encrypted_db.pyindex 98f74c793b..5aec25124f 100644--- a/src/local_deep_research/database/encrypted_db.py+++ b/src/local_deep_research/database/encrypted_db.py@@ -227,7 +227,7 @@ class DatabaseManager:def create_sqlcipher_connection():"""Create a properly initialized SQLCipher connection."""- conn = sqlcipher3.connect(str(db_path))+ conn = sqlcipher3.connect(str(db_path), check_same_thread=False)cursor = conn.cursor()# Use centralized SQLCipher setup@@ -248,10 +248,7 @@ class DatabaseManager:engine = create_engine("sqlite://",creator=create_sqlcipher_connection,- poolclass=NullPool, # Use NullPool to avoid thread issues- connect_args={- "check_same_thread": False,- },+ poolclass=QueuePool,echo=False,query_cache_size=1000, # Increased for complex queries with SQLCipher)@@ -263,7 +260,7 @@ class DatabaseManager:engine = create_engine(f"sqlite:///{db_path}",connect_args={"check_same_thread": False},- poolclass=NullPool,+ poolclass=QueuePool,echo=False,query_cache_size=1000, # Same optimization for unencrypted)