~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 version display in the web interface.
Daniel Petti4cc846bb58a1
diff --git a/src/local_deep_research/web/routes/research_routes.py b/src/local_deep_research/web/routes/research_routes.pyindex f45fa29bba..bf839e25ce 100644--- a/src/local_deep_research/web/routes/research_routes.py+++ b/src/local_deep_research/web/routes/research_routes.py@@ -10,7 +10,6 @@ from flask import (current_app,jsonify,redirect,- render_template,request,send_from_directory,url_for,@@ -18,6 +17,7 @@ from flask import (from ..models.database import add_log_to_db, calculate_duration, get_db_connectionfrom ..services.research_service import run_research_process, start_research_process+from ..utils.templates import render_template_with_defaults# Initialize loggerlogger = logging.getLogger(__name__)@@ -48,7 +48,7 @@ def get_globals():# Route for index page - redirection@research_bp.route("/")def index():- return render_template("pages/research.html")+ return render_template_with_defaults("pages/research.html")# Add the missing static file serving route@@ -70,62 +70,62 @@ def redirect_static(path):@research_bp.route("/progress/<int:research_id>")def progress_page(research_id):"""Render the research progress page"""- return render_template("pages/progress.html")+ return render_template_with_defaults("pages/progress.html")@research_bp.route("/details/<int:research_id>")def research_details_page(research_id):"""Render the research details page"""- return render_template("pages/details.html")+ return render_template_with_defaults("pages/details.html")@research_bp.route("/results/<int:research_id>")def results_page(research_id):"""Render the research results page"""- return render_template("pages/results.html")+ return render_template_with_defaults("pages/results.html")@research_bp.route("/history")def history_page():"""Render the history page"""- return render_template("pages/history.html")+ return render_template_with_defaults("pages/history.html")# Add missing settings routes@research_bp.route("/settings", methods=["GET"])def settings_page():"""Render the settings page"""- return render_template("settings_dashboard.html")+ return render_template_with_defaults("settings_dashboard.html")@research_bp.route("/settings/main", methods=["GET"])def main_config_page():"""Render the main settings config page"""- return render_template("main_config.html")+ return render_template_with_defaults("main_config.html")@research_bp.route("/settings/collections", methods=["GET"])def collections_config_page():"""Render the collections config page"""- return render_template("collections_config.html")+ return render_template_with_defaults("collections_config.html")@research_bp.route("/settings/api_keys", methods=["GET"])def api_keys_config_page():"""Render the API keys config page"""- return render_template("api_keys_config.html")+ return render_template_with_defaults("api_keys_config.html")@research_bp.route("/settings/search_engines", methods=["GET"])def search_engines_config_page():"""Render the search engines config page"""- return render_template("search_engines_config.html")+ return render_template_with_defaults("search_engines_config.html")@research_bp.route("/settings/llm", methods=["GET"])def llm_config_page():"""Render the LLM config page"""- return render_template("llm_config.html")+ return render_template_with_defaults("llm_config.html")@research_bp.route("/api/start_research", methods=["POST"])diff --git a/src/local_deep_research/web/routes/settings_routes.py b/src/local_deep_research/web/routes/settings_routes.pyindex 109ba93b56..f697b67b24 100644--- a/src/local_deep_research/web/routes/settings_routes.py+++ b/src/local_deep_research/web/routes/settings_routes.py@@ -12,7 +12,6 @@ from flask import (flash,jsonify,redirect,- render_template,request,url_for,)@@ -27,6 +26,7 @@ from ..services.settings_service import (get_settings_manager,set_setting,)+from ..utils.templates import render_template_with_defaults# Initialize loggerlogger = logging.getLogger(__name__)@@ -88,7 +88,7 @@ def validate_setting(setting: Setting, value: Any) -> Tuple[bool, Optional[str]]@settings_bp.route("/", methods=["GET"])def settings_page():"""Main settings dashboard with links to specialized config pages"""- return render_template("settings_dashboard.html")+ return render_template_with_defaults("settings_dashboard.html")@settings_bp.route("/save_all_settings", methods=["POST"])diff --git a/src/local_deep_research/web/templates/components/sidebar.html b/src/local_deep_research/web/templates/components/sidebar.htmlindex 35b063a521..9135eff31d 100644--- a/src/local_deep_research/web/templates/components/sidebar.html+++ b/src/local_deep_research/web/templates/components/sidebar.html@@ -16,6 +16,6 @@</ul></nav><div class="sidebar-footer">- <p>v0.2.0 | <i class="fas fa-brain"></i></p>+ <p>{{ version }} | <i class="fas fa-brain"></i></p></div></aside>diff --git a/src/local_deep_research/web/utils/templates.py b/src/local_deep_research/web/utils/templates.pynew file mode 100644index 0000000000..82e4d47bb3--- /dev/null+++ b/src/local_deep_research/web/utils/templates.py@@ -0,0 +1,24 @@+"""+Utilities for rendering templates.+"""++from typing import Any++from flask import render_template++from ...__version__ import __version__+++def render_template_with_defaults(*args: Any, **kwargs: Any) -> str:+ """+ Renders templates with some default values filled.++ Args:+ *args: Will be passed to the normal `render_template`.+ **kwargs: Will be passed to the normal `render_template`.++ Returns:+ The rendered template.++ """+ return render_template(*args, version=__version__, **kwargs)