~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
Support saving logs to a directory.
Daniel Petti4525f9037439
diff --git a/.github/workflows/release.yml b/.github/workflows/release.ymlnew file mode 100644index 0000000000..f456d0f92d--- /dev/null+++ b/.github/workflows/release.yml@@ -0,0 +1,36 @@+name: Release++on:+ push:+ branches:+ - main++permissions:+ contents: write++jobs:+ release:+ runs-on: ubuntu-latest+ steps:+ - uses: actions/checkout@v3++ - name: Get version+ id: version+ run: |+ echo "VERSION=$(python -c 'exec(open("src/local_deep_research/__version__.py").read()); print(__version__)')" >> $GITHUB_OUTPUT++ - name: Create tag+ run: |+ git config user.name github-actions+ git config user.email [email protected]+ git tag -a v${{ steps.version.outputs.VERSION }} -m "Release v${{ steps.version.outputs.VERSION }}"+ git push origin v${{ steps.version.outputs.VERSION }}++ - name: Create Release+ uses: softprops/action-gh-release@v1+ with:+ tag_name: v${{ steps.version.outputs.VERSION }}+ name: Release v${{ steps.version.outputs.VERSION }}+ draft: false+ prerelease: false+ token: ${{ secrets.GITHUB_TOKEN }}diff --git a/src/local_deep_research/__init__.py b/src/local_deep_research/__init__.pyindex 3ef94aad3e..37099ecf07 100644--- a/src/local_deep_research/__init__.py+++ b/src/local_deep_research/__init__.py@@ -5,12 +5,17 @@ Local Deep Research - A tool for conducting deep research using AI.__author__ = "Your Name"__description__ = "A tool for conducting deep research using AI"+from loguru import logger+from .__version__ import __version__from .config.llm_config import get_llmfrom .config.search_config import get_searchfrom .report_generator import get_report_generatorfrom .web.app import main+# Disable logging by default to not interfere with user setup.+logger.disable("local_deep_research")+def get_advanced_search_system(strategy_name: str = "iterdrag"):"""diff --git a/src/local_deep_research/utilities/log_utils.py b/src/local_deep_research/utilities/log_utils.pyindex 294f43b5f0..3a4e007a89 100644--- a/src/local_deep_research/utilities/log_utils.py+++ b/src/local_deep_research/utilities/log_utils.py@@ -4,9 +4,17 @@ Utilities for logging.import inspectimport logging+import sys+from pathlib import Pathfrom loguru import logger+_LOG_DIR = Path(__file__).parents[2] / "data" / "logs"+_LOG_DIR.mkdir(exist_ok=True)+"""+Default log directory to use.+"""+class InterceptHandler(logging.Handler):"""@@ -34,3 +42,26 @@ class InterceptHandler(logging.Handler):logger.opt(depth=depth, exception=record.exc_info).log(level, record.getMessage())+++def config_logger(name: str) -> None:+ """+ Configures the default logger.++ Args:+ name: The name to use for the log file.++ """+ logger.enable("local_deep_research")+ logger.remove()++ # Log more important stuff to the console.+ logger.add(sys.stderr, level="INFO")+ logger.add(+ _LOG_DIR / f"{name}.log",+ level="DEBUG",+ enqueue=True,+ rotation="00:00",+ retention="30 days",+ compression="zip",+ )diff --git a/src/local_deep_research/web/app.py b/src/local_deep_research/web/app.pyindex c442535fd5..cb42ee615a 100644--- a/src/local_deep_research/web/app.py+++ b/src/local_deep_research/web/app.py@@ -3,6 +3,13 @@ import sysfrom loguru import logger+from ..utilities.log_utils import config_logger++if __name__ == "__main__":+ # Configure logging. Do this at the top to ensure we don't lose logs from+ # imports.+ config_logger("ldr_web")+from ..setup_data_dir import setup_data_dirfrom ..utilities.db_utils import get_db_settingfrom .app_factory import create_app@@ -49,7 +56,7 @@ def check_migration_needed():app, socketio = create_app()def main():"""Entry point for the web application when run as a command.