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 optimization

LearningCircuita184765ef9a2
diff --git a/src/local_deep_research/config.py b/src/local_deep_research/config.py
index 8b5ed2d335..7cab892a11 100644
--- a/src/local_deep_research/config.py
+++ b/src/local_deep_research/config.py
@@ -41,8 +41,14 @@ 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}")
-
+ logger.warning(f"Warning: .env file not found at {env_file}. Trying secondary location.")
+ env_file_secondary = get_config_dir() / ".env"
+ if env_file_secondary.exists():
+ get_config_dir() / "config"
+ logger.info(f"Loading environment variables from: {env_file_secondary}")
+ load_dotenv(dotenv_path=env_file_secondary)
+ else:
+ logger.warning(f"Warning: .env file also not found at {env_file_secondary}.")
# Set environment variable for Dynaconf to use