Skip to content

~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.

minor fix

LearningCircuit6a4848cf45de
diff --git a/src/local_deep_research/config.py b/src/local_deep_research/config.py
index 05baa7502f..8b5ed2d335 100644
--- a/src/local_deep_research/config.py
+++ b/src/local_deep_research/config.py
@@ -34,25 +34,20 @@ SEARCH_ENGINES_FILE = CONFIG_DIR / "search_engines.toml"
LOCAL_COLLECTIONS_FILE = CONFIG_DIR / "local_collections.toml"
-# Load the .env file explicitly
-# Load the .env file explicitly
-config_dir = get_config_dir()
-env_file = config_dir / ".env"
+
+env_file = CONFIG_DIR / ".env"
if env_file.exists():
logger.info(f"Loading environment variables from: {env_file}")
load_dotenv(dotenv_path=env_file)
else:
logger.warning(f"Warning: .env file not found at {env_file}")
-# Set environment variable for Dynaconf to use
-docs_base = Path(user_documents_dir()) / "local_deep_research"
-os.environ["DOCS_DIR"] = str(docs_base)
-
-
-
+# Set environment variable for Dynaconf to use
+docs_base = Path(user_documents_dir()) / "local_deep_research"
+os.environ["DOCS_DIR"] = str(docs_base)
# Expose get_llm function
diff --git a/src/local_deep_research/defaults/.env.template b/src/local_deep_research/defaults/.env.template
index c5376cd886..8f82afca53 100644
--- a/src/local_deep_research/defaults/.env.template
+++ b/src/local_deep_research/defaults/.env.template
@@ -2,11 +2,14 @@
# OPENAI_ENDPOINT_API_KEY=your-api-key-here
# ANTHROPIC_API_KEY=your-api-key-here
# OPENAI_API_KEY=your-openai-key-here
+
+# BRAVE_API_KEY=
# SERP_API_KEY=your-api-key-here
# GUARDIAN_API_KEY=your-api-key-here
# GOOGLE_PSE_API_KEY=your-google-api-key-here
# GOOGLE_PSE_ENGINE_ID=your-programmable-search-engine-id-here
+
# SearXNG Configuration, add at least SEARXNG_INSTANCE to .env file to use this search engine
# SEARXNG_INSTANCE = "http://localhost:8080"
# SEARXNG_DELAY = 2.0